| Summary: | SDL_cocoakeyboard.m needs SDL_events_c.h | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, philipp.wiesemann |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | Mac OS X (All) | ||
Fixed as of https://hg.libsdl.org/SDL/rev/77cf2d1b7215 Thanks! |
clang emits a warning with latest hg (rev 9901 as of this writing). the following tiny patch fixes it. /SDL2/src/video/cocoa/SDL_cocoakeyboard.m:458:13: warning: implicit declaration of function 'SDL_SendKeymapChangedEvent' is invalid in C99 [-Wimplicit-function-declaration] SDL_SendKeymapChangedEvent(); ^ --- SDL2/src/video/cocoa/SDL_cocoakeyboard.m~ +++ SDL2/src/video/cocoa/SDL_cocoakeyboard.m @@ -24,6 +24,7 @@ #include "SDL_cocoavideo.h" +#include "../../events/SDL_events_c.h" #include "../../events/SDL_keyboard_c.h" #include "../../events/scancodes_darwin.h"