include/SDL_syswm.h
changeset 9153 b0a76d1f4a56
parent 9099 5bbfdfa38bfc
child 9422 286c854c1d5b
child 9521 4c218c80b34d
--- a/include/SDL_syswm.h	Thu Sep 25 20:56:27 2014 +0200
+++ b/include/SDL_syswm.h	Tue Sep 30 11:20:50 2014 -0700
@@ -152,6 +152,10 @@
 #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