summaryrefslogtreecommitdiff
path: root/packages/libsdl/files/explicit-extern-C.patch
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2008-02-19 22:59:18 +0000
committerStanislav Brabec <utx@penguin.cz>2008-02-19 22:59:18 +0000
commit62adfb2470ab84c106ad6fe4e169620f1477beb0 (patch)
tree592aad5f9bda6ad3f993e151ddf9e9795b5a5436 /packages/libsdl/files/explicit-extern-C.patch
parent74a532e4bc5f8b037d050a0a1fb66ea35eeac1ec (diff)
parent2999625c9793012541dee694ef993d35e630af1f (diff)
merge of '9a5df4f82194968b8ea8a94d7effc5bf61c1e650'
and 'cb1970d64a9cdb9559e137f509557905fbc174b5'
Diffstat (limited to 'packages/libsdl/files/explicit-extern-C.patch')
-rw-r--r--packages/libsdl/files/explicit-extern-C.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/libsdl/files/explicit-extern-C.patch b/packages/libsdl/files/explicit-extern-C.patch
new file mode 100644
index 0000000000..3dd44bea27
--- /dev/null
+++ b/packages/libsdl/files/explicit-extern-C.patch
@@ -0,0 +1,22 @@
+--- SDL-1.2.9-orig/src/video/SDL_sysvideo.h.org 2005-04-17 10:40:41.000000000 +0000
++++ SDL-1.2.9-orig/src/video/SDL_sysvideo.h 2007-05-25 07:34:38.000000000 +0000
+@@ -332,6 +332,9 @@
+ SDL_VideoDevice *(*create)(int devindex);
+ } VideoBootStrap;
+
++#ifdef __cplusplus
++extern "C" {
++#endif
+ #ifdef ENABLE_X11
+ extern VideoBootStrap X11_bootstrap;
+ #endif
+@@ -417,6 +420,9 @@
+ #ifdef ENABLE_RISCOS
+ extern VideoBootStrap RISCOS_bootstrap;
+ #endif
++#ifdef __cplusplus
++};
++#endif
+ /* This is the current video device */
+ extern SDL_VideoDevice *current_video;
+