changeset 358:3bdc776a4b33

Add C++ guards.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Oct 2012 21:24:48 +0300
parents 1b8362a26692
children 59045853853d
files jss.h jssmix.h jssmod.h jssplr.h
diffstat 4 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jss.h	Tue Oct 16 20:09:11 2012 +0300
+++ b/jss.h	Tue Oct 16 21:24:48 2012 +0300
@@ -8,6 +8,10 @@
 
 #include "dmlib.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 /* Locking
  */
@@ -94,4 +98,8 @@
 #endif // JSS_LIGHT
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // JSS_H
--- a/jssmix.h	Tue Oct 16 20:09:11 2012 +0300
+++ b/jssmix.h	Tue Oct 16 21:24:48 2012 +0300
@@ -7,6 +7,11 @@
 #define JSSMIX_H
 #include "jss.h"
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 //#define DBG(...) do { fprintf(stderr, __VA_ARGS__); } while (0)
 #define DBG(...) do { /* stub */ } while (0)
 
@@ -158,4 +163,8 @@
 int         jvmGetGlobalVol(JSSMixer *mixer);
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // JSSMIX_H
--- a/jssmod.h	Tue Oct 16 20:09:11 2012 +0300
+++ b/jssmod.h	Tue Oct 16 21:24:48 2012 +0300
@@ -9,6 +9,9 @@
 #include "jss.h"
 #include "dmres.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 // Max data size definitions
 #define jsetMaxRows         (256)   // Max number of rows
@@ -305,4 +308,8 @@
 int        jssLoadJSSMOD(Uint8 *, const size_t, JSSModule **);
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // JSSMOD_H
--- a/jssplr.h	Tue Oct 16 20:09:11 2012 +0300
+++ b/jssplr.h	Tue Oct 16 21:24:48 2012 +0300
@@ -10,6 +10,9 @@
 #include "jssmod.h"
 #include "jssmix.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 // Player general constants
 #define mpMinVol            (0)
@@ -176,4 +179,8 @@
 #  define JMPDEBUG(QQ) // stub
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // JSSPLR_H