summarylogtreecommitdiffstats
path: root/sdl_sound-renamed-physfs-export.patch
diff options
context:
space:
mode:
authorCarsten Teibes2015-05-10 16:24:28 +0200
committerCarsten Teibes2015-05-10 16:24:28 +0200
commit88789f99c28cecd9feb5a82e0f4f13b534d4a18e (patch)
tree62e9c8de9add591968da5c589c186bbae229d57c /sdl_sound-renamed-physfs-export.patch
parent538148f9425c7019107ec57d3a90bb2ae78ff99e (diff)
downloadaur-sdl_sound-patched-hg.tar.gz
[upd] Add ima-adpcm patch
Diffstat (limited to 'sdl_sound-renamed-physfs-export.patch')
-rw-r--r--sdl_sound-renamed-physfs-export.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sdl_sound-renamed-physfs-export.patch b/sdl_sound-renamed-physfs-export.patch
new file mode 100644
index 000000000000..316d165c71df
--- /dev/null
+++ b/sdl_sound-renamed-physfs-export.patch
@@ -0,0 +1,27 @@
+diff -ru SDL_sound.orig/playsound/physfsrwops.h SDL_sound/playsound/physfsrwops.h
+--- SDL_sound.orig/playsound/physfsrwops.h 2014-01-11 06:28:35.494936000 +0100
++++ SDL_sound/playsound/physfsrwops.h 2014-01-11 06:31:38.315675483 +0100
+@@ -29,6 +29,11 @@
+ extern "C" {
+ #endif
+
++/* renamed in physfs dev, add alias */
++#ifdef PHYSFS_DECL
++#define __EXPORT__ PHYSFS_DECL
++#endif
++
+ /**
+ * Open a platform-independent filename for reading, and make it accessible
+ * via an SDL_RWops structure. The file will be closed in PhysicsFS when the
+@@ -77,6 +82,11 @@
+ */
+ __EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
+
++/* renamed in physfs dev, remove alias */
++#ifdef PHYSFS_DECL
++#undef __EXPORT__
++#endif
++
+ #ifdef __cplusplus
+ }
+ #endif