WinRT: cleaned up SDL_platform_windowsrt.h
authorDavid Ludwig
Sat, 24 Nov 2012 11:46:15 -0500
changeset 836335a4405157ab
parent 8362 ec8b86ada110
child 8364 ba0d913b6459
WinRT: cleaned up SDL_platform_windowsrt.h
include/SDL_config_windowsrt.h
     1.1 --- a/include/SDL_config_windowsrt.h	Sat Nov 24 11:20:59 2012 -0500
     1.2 +++ b/include/SDL_config_windowsrt.h	Sat Nov 24 11:46:15 2012 -0500
     1.3 @@ -76,10 +76,8 @@
     1.4  # define SIZEOF_VOIDP 4
     1.5  #endif
     1.6  
     1.7 -/* Enabled for SDL 1.2 (binary compatibility) */
     1.8 -#define HAVE_LIBC     1
     1.9 -#ifdef HAVE_LIBC
    1.10  /* Useful headers */
    1.11 +#define HAVE_LIBC 1
    1.12  #define HAVE_STDIO_H 1
    1.13  #define STDC_HEADERS 1
    1.14  #define HAVE_STRING_H 1
    1.15 @@ -102,13 +100,13 @@
    1.16  #define HAVE_STRLEN 1
    1.17  #define HAVE__STRREV 1
    1.18  #define HAVE__STRUPR 1
    1.19 -//#define HAVE__STRLWR 1	// TODO, WinRT: use _strlwr_s instead
    1.20 +//#define HAVE__STRLWR 1	// TODO, WinRT: consider using _strlwr_s instead
    1.21  #define HAVE_STRCHR 1
    1.22  #define HAVE_STRRCHR 1
    1.23  #define HAVE_STRSTR 1
    1.24  #define HAVE_ITOA 1
    1.25 -//#define HAVE__LTOA 1	// TODO, WinRT: use _ltoa_s instead
    1.26 -//#define HAVE__ULTOA 1	// TODO, WinRT: use _ultoa_s instead
    1.27 +//#define HAVE__LTOA 1	// TODO, WinRT: consider using _ltoa_s instead
    1.28 +//#define HAVE__ULTOA 1	// TODO, WinRT: consider using _ultoa_s instead
    1.29  #define HAVE_STRTOL 1
    1.30  #define HAVE_STRTOUL 1
    1.31  #define HAVE_STRTOLL 1
    1.32 @@ -119,7 +117,7 @@
    1.33  #define HAVE_STRNCMP 1
    1.34  #define HAVE__STRICMP 1
    1.35  #define HAVE__STRNICMP 1
    1.36 -//#define HAVE_SSCANF 1	// TODO, WinRT: use sscanf_s instead
    1.37 +//#define HAVE_SSCANF 1	// TODO, WinRT: consider using sscanf_s instead
    1.38  #define HAVE_M_PI 1
    1.39  #define HAVE_ATAN 1
    1.40  #define HAVE_ATAN2 1
    1.41 @@ -135,13 +133,6 @@
    1.42  #define HAVE_SIN 1
    1.43  #define HAVE_SINF 1
    1.44  #define HAVE_SQRT 1
    1.45 -#else
    1.46 -#define HAVE_STDARG_H	1
    1.47 -#define HAVE_STDDEF_H	1
    1.48 -//#define HAVE_STDLIB_H	1
    1.49 -//#define HAVE_MALLOC		1
    1.50 -//#define HAVE_FREE 1
    1.51 -#endif
    1.52  
    1.53  /* Enable various audio drivers */
    1.54  //#define SDL_AUDIO_DRIVER_XAUDIO2	1   /* Disabled pending work to fix quality + stability issues */
    1.55 @@ -155,11 +146,11 @@
    1.56  #define SDL_JOYSTICK_DISABLED	1
    1.57  
    1.58  /* Enable various shared object loading systems */
    1.59 -#define SDL_LOADSO_WINDOWS	1
    1.60 +// TODO, WinRT: adapt the Win32 shared object loading code for WinRT 
    1.61 +#define SDL_LOADSO_DISABLED 1
    1.62 +//#define SDL_LOADSO_WINDOWS	1
    1.63  
    1.64  /* Enable various threading systems */
    1.65 -//#define SDL_THREADS_DISABLED    1
    1.66 -//#define SDL_THREAD_WINDOWS	1
    1.67  #define SDL_THREAD_STDCPP   1
    1.68  
    1.69  /* Enable various timer systems */
    1.70 @@ -175,7 +166,8 @@
    1.71  // TODO, WinRT: Get a Direct3D 11 based renderer working in SDL.
    1.72  
    1.73  /* Enable system power support */
    1.74 -#define SDL_POWER_WINDOWS 1
    1.75 +// TODO, WinRT: investigate system power support.  The Win32-based APIs don't work on WinRT.
    1.76 +#define SDL_POWER_DISABLED  1
    1.77  
    1.78  /* Enable assembly routines (Win64 doesn't have inline asm) */
    1.79  #ifndef _WIN64