summaryrefslogtreecommitdiff
path: root/recipes/libsdl/files/explicit-extern-C.patch
blob: 3dd44bea27d8334a55e574615bb16987bb16c1f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;