#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
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