include/SDL_syswm.h
changeset 1626 a80e1e0880b8
parent 1487 dc6b59e925a2
child 1659 14717b52abc0
     1.1 --- a/include/SDL_syswm.h	Thu Apr 13 13:30:21 2006 +0000
     1.2 +++ b/include/SDL_syswm.h	Thu Apr 13 13:38:40 2006 +0000
     1.3 @@ -46,7 +46,7 @@
     1.4  #else
     1.5  
     1.6  /* This is the structure for custom window manager events */
     1.7 -#if SDL_VIDEO_DRIVER_X11
     1.8 +#if defined(SDL_VIDEO_DRIVER_X11)
     1.9  #if defined(__APPLE__) && defined(__MACH__)
    1.10  /* conflicts with Quickdraw.h */
    1.11  #define Cursor X11Cursor
    1.12 @@ -100,7 +100,7 @@
    1.13  	} info;
    1.14  } SDL_SysWMinfo;
    1.15  
    1.16 -#elif SDL_VIDEO_DRIVER_NANOX
    1.17 +#elif defined(SDL_VIDEO_DRIVER_NANOX)
    1.18  #include <microwin/nano-X.h>
    1.19  
    1.20  /* The generic custom event structure */
    1.21 @@ -115,7 +115,7 @@
    1.22  	GR_WINDOW_ID window ;	/* The display window */
    1.23  } SDL_SysWMinfo;
    1.24  
    1.25 -#elif SDL_VIDEO_DRIVER_WINDIB || SDL_VIDEO_DRIVER_DDRAW
    1.26 +#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW)
    1.27  #define WIN32_LEAN_AND_MEAN
    1.28  #include <windows.h>
    1.29  
    1.30 @@ -135,7 +135,7 @@
    1.31  	HGLRC hglrc;			/* The OpenGL context, if any */
    1.32  } SDL_SysWMinfo;
    1.33  
    1.34 -#elif SDL_VIDEO_DRIVER_RISCOS
    1.35 +#elif defined(SDL_VIDEO_DRIVER_RISCOS)
    1.36  
    1.37  /* RISC OS custom event structure */
    1.38  struct SDL_SysWMmsg {
    1.39 @@ -152,7 +152,7 @@
    1.40  	int window;		/* The RISC OS display window */
    1.41  } SDL_SysWMinfo;
    1.42  
    1.43 -#elif SDL_VIDEO_DRIVER_PHOTON
    1.44 +#elif defined(SDL_VIDEO_DRIVER_PHOTON)
    1.45  #include <sys/neutrino.h>
    1.46  #include <Ph.h>
    1.47