Skip to content

Commit

Permalink
Mac: Fix build with clang from Xcode 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Sep 30, 2014
1 parent 51a07ad commit 498690f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/SDL_syswm.h
Expand Up @@ -152,6 +152,10 @@ struct SDL_SysWMmsg
#if defined(SDL_VIDEO_DRIVER_COCOA)
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 */
} cocoa;
#endif
Expand Down

0 comments on commit 498690f

Please sign in to comment.