mirror of
https://github.com/encounter/SDL.git
synced 2025-12-12 22:56:09 +00:00
Integrated David Ludwig's support for Windows RT
This commit is contained in:
@@ -316,6 +316,10 @@ stdio_seek(SDL_RWops * context, Sint64 offset, int whence)
|
||||
if (fseeko(context->hidden.stdio.fp, (off_t)offset, whence) == 0) {
|
||||
return ftello(context->hidden.stdio.fp);
|
||||
}
|
||||
#elif defined(HAVE__FSEEKI64)
|
||||
if (_fseeki64(context->hidden.stdio.fp, offset, whence) == 0) {
|
||||
return _ftelli64(context->hidden.stdio.fp);
|
||||
}
|
||||
#else
|
||||
if (fseek(context->hidden.stdio.fp, offset, whence) == 0) {
|
||||
return ftell(context->hidden.stdio.fp);
|
||||
@@ -522,6 +526,9 @@ SDL_RWFromFile(const char *file, const char *mode)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
FILE *fp = SDL_OpenFPFromBundleOrFallback(file, mode);
|
||||
#elif __WINRT__
|
||||
FILE *fp = NULL;
|
||||
fopen_s(&fp, file, mode);
|
||||
#else
|
||||
FILE *fp = fopen(file, mode);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user