OSDN Git Service

Exclude jni.h if building with NOJNI
authorRichard Taylor <rtaylor205@googlemail.com>
Wed, 3 Oct 2012 04:30:39 +0000 (21:30 -0700)
committerRichard Taylor <rtaylor205@googlemail.com>
Wed, 3 Oct 2012 04:30:39 +0000 (21:30 -0700)
gdx/jni/gdx2d/gdx2d.h

index 3802018..9027bae 100644 (file)
 #define __GDX2D__\r
 \r
 #include <stdint.h>\r
+\r
+#ifndef NOJNI\r
 #include <jni.h>\r
+#else\r
+#define JNIEXPORT\r
+#endif\r
 \r
 #ifdef __cplusplus\r
 extern "C" {\r
@@ -61,10 +66,6 @@ typedef struct {
        const unsigned char* pixels;\r
 } gdx2d_pixmap;\r
 \r
-#ifdef NOJNI\r
-#define JNIEXPORT\r
-#endif\r
-\r
 JNIEXPORT gdx2d_pixmap* gdx2d_load (const unsigned char *buffer, uint32_t len, uint32_t req_format);\r
 JNIEXPORT gdx2d_pixmap* gdx2d_new  (uint32_t width, uint32_t height, uint32_t format);\r
 JNIEXPORT void                  gdx2d_free (const gdx2d_pixmap* pixmap);\r