Patched physfsrwops to compile against SDL 1.2 (thanks, Rob!). stable-3.0
authorRyan C. Gordon <icculus@icculus.org>
Sat, 11 Nov 2017 08:53:23 -0500
branchstable-3.0
changeset 1629 540be489d50f
parent 1627 fa8e38bcc354
Patched physfsrwops to compile against SDL 1.2 (thanks, Rob!).
docs/CREDITS.txt
extras/physfsrwops.c
--- a/docs/CREDITS.txt	Thu Oct 26 14:38:03 2017 -0400
+++ b/docs/CREDITS.txt	Sat Nov 11 08:53:23 2017 -0500
@@ -164,6 +164,9 @@
 Bug fixes,
     RĂ©mi Verschelde
 
+Bug fixes:
+    Rob Loach
+
 Other stuff:
     Your name here! Patches go to icculus@icculus.org ...
 
--- a/extras/physfsrwops.c	Thu Oct 26 14:38:03 2017 -0400
+++ b/extras/physfsrwops.c	Sat Nov 11 08:53:23 2017 -0500
@@ -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)