Patched physfsrwops to compile against SDL 1.2 (thanks, Rob!).

(transplanted from 540be489d50f9fe29f1f517202b6a9d199f36a2a)
This commit is contained in:
Ryan C. Gordon 2017-11-11 08:53:23 -05:00
parent 90dfc49f6d
commit 47b0e834dc
2 changed files with 9 additions and 0 deletions

View File

@ -164,6 +164,9 @@ CMake fixes:
Bug fixes, Bug fixes,
Rémi Verschelde Rémi Verschelde
Bug fixes:
Rob Loach
Other stuff: Other stuff:
Your name here! Patches go to icculus@icculus.org ... Your name here! Patches go to icculus@icculus.org ...

View File

@ -32,10 +32,16 @@
#endif #endif
#if !TARGET_SDL2 #if !TARGET_SDL2
#ifndef RW_SEEK_SET
#define RW_SEEK_SET SEEK_SET #define RW_SEEK_SET SEEK_SET
#endif
#ifndef RW_SEEK_CUR
#define RW_SEEK_CUR SEEK_CUR #define RW_SEEK_CUR SEEK_CUR
#endif
#ifndef RW_SEEK_END
#define RW_SEEK_END SEEK_END #define RW_SEEK_END SEEK_END
#endif #endif
#endif
#if TARGET_SDL2 #if TARGET_SDL2
static Sint64 SDLCALL physfsrwops_size(struct SDL_RWops *rw) static Sint64 SDLCALL physfsrwops_size(struct SDL_RWops *rw)