mirror of https://github.com/encounter/SDL.git
Mac: Fix build with clang from Xcode 6.
This commit is contained in:
parent
51a07ade28
commit
498690ffa3
|
@ -152,6 +152,10 @@ struct SDL_SysWMmsg
|
||||||
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
/* Latest version of Xcode clang complains about empty structs in C v. C++:
|
||||||
|
error: empty struct has size 0 in C, size 1 in C++
|
||||||
|
*/
|
||||||
|
int dummy;
|
||||||
/* No Cocoa window events yet */
|
/* No Cocoa window events yet */
|
||||||
} cocoa;
|
} cocoa;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue