]> rtime.felk.cvut.cz Git - orte.git/commitdiff
JORTE: update header files
authorMartin Vajnar <martin.vajnar@gmail.com>
Sun, 21 Jul 2013 09:04:13 +0000 (11:04 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 09:06:26 +0000 (11:06 +0200)
Remove defines of UINT32__MIN and UINT32__MAX, because they are in the
<stdint.h> and UINT32__MAX is computed in a wrong way.

Make the HAVE_CONFIG_H hack Android specific and add extern "C" for C++
compatibility to onLoad.h

orte/include/jorte/jorte.h
orte/include/jorte/jorte_typedefs_defines.h
orte/include/jorte/onLoad.h

index 9c7a5e339a253ff05c2060b0aba8f897effca471..73c51fad1d290fffd5c69af6bbca3a6c853e440d 100644 (file)
@@ -42,7 +42,6 @@ extern "C" {
 
 // auto-generated headers by JNI
 #include "org_ocera_orte_tools_Conversions.h"
-#include "org_ocera_orte_Domain.h"
 #include "org_ocera_orte_DomainEvents.h"
 #include "org_ocera_orte_DomainProp.h"
 #include "org_ocera_orte_tools_GetORTEConstant.h"
index 62fc85dd77830e00c34e48b22395274f39341995..e6f50fa56c9180f3aacc789c8141365d4fbed8f2 100644 (file)
   */
 
 
-# define UINT32__MIN 0
-# define UINT32__MAX (2^32 -1)
-
-
 typedef struct
 {
  JavaVM        *jvm;
index 76802393dff89d52c36631b62f0c92f4b663f597..77524db1e6caf99e0bc79b43a3b830082b992deb 100644 (file)
@@ -1,8 +1,14 @@
+#include <jni.h>
+
 #ifndef IncludedOnLoad
 #define IncludedOnLoad
-
-#include <jni.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 jclass findClass(JNIEnv *env, const char* name);
 
+#ifdef __cplusplus
+}
+#endif
 #endif