Skip to content

Commit

Permalink
Patched physfsrwops to compile against SDL 1.2 (thanks, Rob!).
Browse files Browse the repository at this point in the history
(transplanted from 540be489d50f9fe29f1f517202b6a9d199f36a2a)
  • Loading branch information
icculus committed Nov 11, 2017
1 parent 90dfc49 commit 47b0e83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/CREDITS.txt
Expand Up @@ -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 ...

Expand Down
6 changes: 6 additions & 0 deletions extras/physfsrwops.c
Expand Up @@ -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)
Expand Down

0 comments on commit 47b0e83

Please sign in to comment.