From 47b0e834dc91cad93fa6828608bd63b0a96c6d56 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 11 Nov 2017 08:53:23 -0500 Subject: [PATCH] Patched physfsrwops to compile against SDL 1.2 (thanks, Rob!). (transplanted from 540be489d50f9fe29f1f517202b6a9d199f36a2a) --- docs/CREDITS.txt | 3 +++ extras/physfsrwops.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/docs/CREDITS.txt b/docs/CREDITS.txt index f7da37f7..c88c50bc 100644 --- a/docs/CREDITS.txt +++ b/docs/CREDITS.txt @@ -164,6 +164,9 @@ CMake fixes: Bug fixes, RĂ©mi Verschelde +Bug fixes: + Rob Loach + Other stuff: Your name here! Patches go to icculus@icculus.org ... diff --git a/extras/physfsrwops.c b/extras/physfsrwops.c index 8e5857ce..a8654ab6 100644 --- a/extras/physfsrwops.c +++ b/extras/physfsrwops.c @@ -32,10 +32,16 @@ #endif #if !TARGET_SDL2 +#ifndef RW_SEEK_SET #define RW_SEEK_SET SEEK_SET +#endif +#ifndef RW_SEEK_CUR #define RW_SEEK_CUR SEEK_CUR +#endif +#ifndef RW_SEEK_END #define RW_SEEK_END SEEK_END #endif +#endif #if TARGET_SDL2 static Sint64 SDLCALL physfsrwops_size(struct SDL_RWops *rw)