--- 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*/