1.1 --- a/include/SDL_config_windowsrt.h Sat Feb 23 20:01:46 2013 -0500
1.2 +++ b/include/SDL_config_windowsrt.h Sat Feb 23 20:12:14 2013 -0500
1.3 @@ -104,7 +104,7 @@
1.4 #define HAVE_STRCHR 1
1.5 #define HAVE_STRRCHR 1
1.6 #define HAVE_STRSTR 1
1.7 -#define HAVE_ITOA 1
1.8 +//#define HAVE_ITOA 1 // TODO, WinRT: consider using _itoa_s instead
1.9 //#define HAVE__LTOA 1 // TODO, WinRT: consider using _ltoa_s instead
1.10 //#define HAVE__ULTOA 1 // TODO, WinRT: consider using _ultoa_s instead
1.11 #define HAVE_STRTOL 1
1.12 @@ -134,6 +134,7 @@
1.13 #define HAVE_SIN 1
1.14 #define HAVE_SINF 1
1.15 #define HAVE_SQRT 1
1.16 +#define HAVE__FSEEKI64 1
1.17
1.18 /* Enable various audio drivers */
1.19 #define SDL_AUDIO_DRIVER_XAUDIO2 1
2.1 --- a/src/file/SDL_rwops.c Sat Feb 23 20:01:46 2013 -0500
2.2 +++ b/src/file/SDL_rwops.c Sat Feb 23 20:12:14 2013 -0500
2.3 @@ -325,6 +325,10 @@
2.4 if (fseeko(context->hidden.stdio.fp, (off_t)offset, whence) == 0) {
2.5 return ftello(context->hidden.stdio.fp);
2.6 }
2.7 +#elif defined(HAVE__FSEEKI64)
2.8 + if (_fseeki64(context->hidden.stdio.fp, offset, whence) == 0) {
2.9 + return _ftelli64(context->hidden.stdio.fp);
2.10 + }
2.11 #else
2.12 if (fseek(context->hidden.stdio.fp, offset, whence) == 0) {
2.13 return (ftell(context->hidden.stdio.fp));