summaryrefslogtreecommitdiff
path: root/ports/unix/modjni.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-10-08 23:38:18 +1100
committerDamien George <damien@micropython.org>2022-10-11 23:27:01 +1100
commit065af04a4e86aa5bdbdedb89140241e5d0030ffb (patch)
tree19d66496d1e3b02ad6d361c9c72e2f62b92dee20 /ports/unix/modjni.c
parent3cc6decfc4d6b459014940ae01f90d4f1fae0da6 (diff)
unix/Makefile: Don't use _MOD variable names.
This conflicts with the triple-usage of these variables for user-C-modules and extmod source. For CFLAGS_MOD, just use CFLAGS directly. For SRC, use SRC_C directly as the relevant files are all guarded by the preprocessor anyway. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
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))