summaryrefslogtreecommitdiff
path: root/ports/unix/modjni.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/modjni.c')
-rw-r--r--ports/unix/modjni.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ports/unix/modjni.c b/ports/unix/modjni.c
index 5988876f8..10622f588 100644
--- a/ports/unix/modjni.c
+++ b/ports/unix/modjni.c
@@ -24,19 +24,19 @@
* THE SOFTWARE.
*/
+#include "py/runtime.h"
+#include "py/binary.h"
+
+#if MICROPY_PY_JNI
+
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <dlfcn.h>
#include <ctype.h>
-#include "py/runtime.h"
-#include "py/binary.h"
-
#include <jni.h>
-#if MICROPY_PY_JNI
-
#define JJ(call, ...) (*env)->call(env, __VA_ARGS__)
#define JJ1(call) (*env)->call(env)
#define MATCH(s, static) (!strncmp(s, static, sizeof(static) - 1))