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 - SDL_cocoakeyboard.m needs SDL_events_c.h
Summary: SDL_cocoakeyboard.m needs SDL_events_c.h
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All Mac OS X (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-08 22:04 UTC by Ozkan Sezer
Modified: 2015-11-14 08:25 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!