Integrated David Ludwig's support for Windows RT
This commit is contained in:
commit
a7d2ebb8d6
79 changed files with 9656 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue