Commit a16a7de8 authored by Sam Lantinga's avatar Sam Lantinga

Fixed compile error on Mac OS X

parent b5141783
...@@ -125,28 +125,31 @@ struct SDL_SysWMmsg ...@@ -125,28 +125,31 @@ struct SDL_SysWMmsg
WPARAM wParam; /**< WORD message parameter */ WPARAM wParam; /**< WORD message parameter */
LPARAM lParam; /**< LONG message parameter */ LPARAM lParam; /**< LONG message parameter */
} win; } win;
#elif defined(SDL_VIDEO_DRIVER_X11) #endif
#if defined(SDL_VIDEO_DRIVER_X11)
struct { struct {
XEvent event; XEvent event;
} x11; } x11;
#elif defined(SDL_VIDEO_DRIVER_DIRECTFB) #endif
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
struct { struct {
DFBEvent event; DFBEvent event;
} dfb; } dfb;
#elif defined(SDL_VIDEO_DRIVER_COCOA) #endif
#if defined(SDL_VIDEO_DRIVER_COCOA)
struct struct
{ {
/* No Cocoa window events yet */ /* No Cocoa window events yet */
} cocoa; } cocoa;
#elif defined(SDL_VIDEO_DRIVER_UIKIT) #endif
#if defined(SDL_VIDEO_DRIVER_UIKIT)
struct struct
{ {
/* No UIKit window events yet */ /* No UIKit window events yet */
} uikit; } uikit;
else #endif
/* Can't have an empty union */ /* Can't have an empty union */
int dummy; int dummy;
#endif
} msg; } msg;
}; };
...@@ -167,33 +170,36 @@ struct SDL_SysWMinfo ...@@ -167,33 +170,36 @@ struct SDL_SysWMinfo
{ {
HWND window; /**< The window handle */ HWND window; /**< The window handle */
} win; } win;
#elif defined(SDL_VIDEO_DRIVER_X11) #endif
#if defined(SDL_VIDEO_DRIVER_X11)
struct struct
{ {
Display *display; /**< The X11 display */ Display *display; /**< The X11 display */
Window window; /**< The X11 window */ Window window; /**< The X11 window */
} x11; } x11;
#elif defined(SDL_VIDEO_DRIVER_DIRECTFB) #endif
#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
struct struct
{ {
IDirectFB *dfb; /**< The directfb main interface */ IDirectFB *dfb; /**< The directfb main interface */
IDirectFBWindow *window; /**< The directfb window handle */ IDirectFBWindow *window; /**< The directfb window handle */
IDirectFBSurface *surface; /**< The directfb client surface */ IDirectFBSurface *surface; /**< The directfb client surface */
} dfb; } dfb;
#elif defined(SDL_VIDEO_DRIVER_COCOA) #endif
#if defined(SDL_VIDEO_DRIVER_COCOA)
struct struct
{ {
NSWindow *window; /* The Cocoa window */ NSWindow *window; /* The Cocoa window */
} cocoa; } cocoa;
#elif defined(SDL_VIDEO_DRIVER_UIKIT) #endif
#if defined(SDL_VIDEO_DRIVER_UIKIT)
struct struct
{ {
UIWindow *window; /* The UIKit window */ UIWindow *window; /* The UIKit window */
} uikit; } uikit;
#else #endif
/* Can't have an empty union */ /* Can't have an empty union */
int dummy; int dummy;
#endif
} info; } info;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment