Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Mac: Fix build with clang from Xcode 6.
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
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 |
|
|