xref: /OK3568_Linux_fs/buildroot/package/sdl_sound/0003-renamed-physfs-export.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1This patch is taken from the Arch Linux User Repository, see:
2https://aur.archlinux.org/packages/sdl_sound-patched-hg/
3
4Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
5
6diff -ru SDL_sound.orig/playsound/physfsrwops.h SDL_sound/playsound/physfsrwops.h
7--- SDL_sound.orig/playsound/physfsrwops.h	2014-01-11 06:28:35.494936000 +0100
8+++ SDL_sound/playsound/physfsrwops.h	2014-01-11 06:31:38.315675483 +0100
9@@ -29,6 +29,11 @@
10 extern "C" {
11 #endif
12
13+/* renamed in physfs dev, add alias */
14+#ifdef PHYSFS_DECL
15+#define __EXPORT__ PHYSFS_DECL
16+#endif
17+
18 /**
19  * Open a platform-independent filename for reading, and make it accessible
20  *  via an SDL_RWops structure. The file will be closed in PhysicsFS when the
21@@ -77,6 +82,11 @@
22  */
23 __EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
24
25+/* renamed in physfs dev, remove alias */
26+#ifdef PHYSFS_DECL
27+#undef __EXPORT__
28+#endif
29+
30 #ifdef __cplusplus
31 }
32 #endif
33