Fixed compile error on Mac OS X
authorSam Lantinga <slouken@libsdl.org>
Fri, 21 Jan 2011 11:23:19 -0800
changeset 50657e4c7790700e
parent 5064 eae20af0b983
child 5066 3afb71c202b2
Fixed compile error on Mac OS X
include/SDL_syswm.h
     1.1 --- a/include/SDL_syswm.h	Thu Jan 20 18:42:41 2011 -0800
     1.2 +++ b/include/SDL_syswm.h	Fri Jan 21 11:23:19 2011 -0800
     1.3 @@ -125,28 +125,31 @@
     1.4              WPARAM wParam;              /**< WORD message parameter */
     1.5              LPARAM lParam;              /**< LONG message parameter */
     1.6          } win;
     1.7 -#elif defined(SDL_VIDEO_DRIVER_X11)
     1.8 +#endif
     1.9 +#if defined(SDL_VIDEO_DRIVER_X11)
    1.10          struct {
    1.11              XEvent event;
    1.12          } x11;
    1.13 -#elif defined(SDL_VIDEO_DRIVER_DIRECTFB)
    1.14 +#endif
    1.15 +#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
    1.16          struct {
    1.17              DFBEvent event;
    1.18          } dfb;
    1.19 -#elif defined(SDL_VIDEO_DRIVER_COCOA)
    1.20 +#endif
    1.21 +#if defined(SDL_VIDEO_DRIVER_COCOA)
    1.22          struct
    1.23          {
    1.24              /* No Cocoa window events yet */
    1.25          } cocoa;
    1.26 -#elif defined(SDL_VIDEO_DRIVER_UIKIT)
    1.27 +#endif
    1.28 +#if defined(SDL_VIDEO_DRIVER_UIKIT)
    1.29          struct
    1.30          {
    1.31              /* No UIKit window events yet */
    1.32          } uikit;
    1.33 -else
    1.34 +#endif
    1.35          /* Can't have an empty union */
    1.36          int dummy;
    1.37 -#endif
    1.38      } msg;
    1.39  };
    1.40  
    1.41 @@ -167,33 +170,36 @@
    1.42          {
    1.43              HWND window;                /**< The window handle */
    1.44          } win;
    1.45 -#elif defined(SDL_VIDEO_DRIVER_X11)
    1.46 +#endif
    1.47 +#if defined(SDL_VIDEO_DRIVER_X11)
    1.48          struct
    1.49          {
    1.50              Display *display;           /**< The X11 display */
    1.51              Window window;              /**< The X11 window */
    1.52          } x11;
    1.53 -#elif defined(SDL_VIDEO_DRIVER_DIRECTFB)
    1.54 +#endif
    1.55 +#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
    1.56          struct
    1.57          {
    1.58              IDirectFB *dfb;             /**< The directfb main interface */
    1.59              IDirectFBWindow *window;    /**< The directfb window handle */
    1.60              IDirectFBSurface *surface;  /**< The directfb client surface */
    1.61          } dfb;
    1.62 -#elif defined(SDL_VIDEO_DRIVER_COCOA)
    1.63 +#endif
    1.64 +#if defined(SDL_VIDEO_DRIVER_COCOA)
    1.65          struct
    1.66          {
    1.67              NSWindow *window;           /* The Cocoa window */
    1.68          } cocoa;
    1.69 -#elif defined(SDL_VIDEO_DRIVER_UIKIT)
    1.70 +#endif
    1.71 +#if defined(SDL_VIDEO_DRIVER_UIKIT)
    1.72          struct
    1.73          {
    1.74              UIWindow *window;           /* The UIKit window */
    1.75          } uikit;
    1.76 -#else
    1.77 +#endif
    1.78          /* Can't have an empty union */
    1.79          int dummy;
    1.80 -#endif
    1.81      } info;
    1.82  };
    1.83