openalbridge/wrappers.h
changeset 2260 31756e21c436
parent 2259 ca42efdce3ce
child 2421 a4b039ee2eb0
--- a/openalbridge/wrappers.h	Sun Jul 12 15:42:54 2009 +0000
+++ b/openalbridge/wrappers.h	Sun Jul 12 19:12:08 2009 +0000
@@ -22,13 +22,20 @@
 #include "globals.h"
 
 
-void *Malloc (size_t nbytes);
-void *Realloc (void *aptr, size_t nbytes);
-FILE *Fopen (const char *fname, char *mode);
-ALint AlGetError (const char *str);
-ALint AlGetError2 (const char *str, int num);
-void *helper_fadein (void *tmp);
-void *helper_fadeout (void *tmp); 
-
+#ifdef __CPLUSPLUS
+extern "C" {
+#endif
+    
+    void *Malloc (size_t nbytes);
+    void *Realloc (void *aptr, size_t nbytes);
+    FILE *Fopen (const char *fname, char *mode);
+    ALint AlGetError (const char *str);
+    ALint AlGetError2 (const char *str, int num);
+    void *helper_fadein (void *tmp);
+    void *helper_fadeout (void *tmp); 
+    
+#ifdef __CPLUSPLUS
+}
+#endif
 
 #endif /*_OALB_WRAPPERS_H*/