We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3167

Summary: SDL_cocoakeyboard.m needs SDL_events_c.h
Product: SDL Reporter: Ozkan Sezer <sezeroz>
Component: videoAssignee: 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)   

Description Ozkan Sezer 2015-11-08 22:04:54 UTC
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"
Comment 1 Alex Szpakowski 2015-11-14 08:25:25 UTC
Fixed as of https://hg.libsdl.org/SDL/rev/77cf2d1b7215

Thanks!