Test the video features with #if instead of #ifdef
This commit is contained in:
Sam Lantinga 2011-01-24 17:38:18 -08:00
parent d5b9e9676a
commit 065e4e3f9d
7 changed files with 27 additions and 5 deletions

View file

@ -179,18 +179,30 @@ typedef unsigned int uintptr_t;
#define SDL_VIDEO_DRIVER_WINDOWS 1
#ifdef _WIN32_WCE
#ifndef SDL_VIDEO_RENDER_GAPI
#define SDL_VIDEO_RENDER_GAPI 1
#endif
#else
#ifndef SDL_VIDEO_RENDER_D3D
#define SDL_VIDEO_RENDER_D3D 1
#endif
#endif
#ifndef SDL_VIDEO_RENDER_GDI
#define SDL_VIDEO_RENDER_GDI 1
#endif
/* Enable OpenGL support */
#ifndef _WIN32_WCE
#ifndef SDL_VIDEO_OPENGL
#define SDL_VIDEO_OPENGL 1
#endif
#ifndef SDL_VIDEO_OPENGL_WGL
#define SDL_VIDEO_OPENGL_WGL 1
#endif
#ifndef SDL_VIDEO_RENDER_OGL
#define SDL_VIDEO_RENDER_OGL 1
#endif
#endif
/* Enable system power support */
#define SDL_POWER_WINDOWS 1