Mac: Fix build with clang from Xcode 6.
authorJørgen P. Tjernø <jorgen@uberent.com>
Tue, 30 Sep 2014 11:20:50 -0700
changeset 9153 b0a76d1f4a56
parent 9152 9ecf775ead1b
child 9154 3331d2f57704
Mac: Fix build with clang from Xcode 6.
include/SDL_syswm.h
--- 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