Commit 498690ffa3e8eeb292d2d3adc4ecc30e76d187b6

J?rgen P. Tjern? 2014-09-30T11:20:50

Mac: Fix build with clang from Xcode 6.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h
index 3b5ac50..03c3b02 100644
--- a/include/SDL_syswm.h
+++ b/include/SDL_syswm.h
@@ -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