Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
In C++ files, replace SG_{BEGIN,END}+_DECL() by extern "C" { }.
[simgrid.git] / src / bindings / java / jmsg_rngstream.cpp
index b294843..cf069b3 100644 (file)
@@ -10,7 +10,7 @@
 #include "jmsg_rngstream.h"
 #include "jxbt_utilities.hpp"
 
-SG_BEGIN_DECL()
+extern "C" {
 
 jfieldID jrngstream_bind;
 
@@ -145,5 +145,4 @@ JNIEXPORT jint JNICALL Java_org_simgrid_msg_RngStream_randInt(JNIEnv *env, jobje
 
   return (jint)RngStream_RandInt(rngstream, (int)i, (int)j);
 }
-
-SG_END_DECL()
+}