aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/nif_helpers.h
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-04-19 14:48:57 +0200
committerLoïc Hoguin <[email protected]>2017-04-19 14:48:57 +0200
commit1947c4d7f32272ec0c5b9295808cde4c9138995c (patch)
tree18afdcdfc3ea21167d84f7d57f09eb8542dc0fb9 /c_src/nif_helpers.h
parent3d3a8dcdc9a2f45888059e69587dd07c45aa856a (diff)
downloadesdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.tar.gz
esdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.tar.bz2
esdl2-1947c4d7f32272ec0c5b9295808cde4c9138995c.zip
Fix warnings in preparation for splitting nif_helpers out
Diffstat (limited to 'c_src/nif_helpers.h')
-rw-r--r--c_src/nif_helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c_src/nif_helpers.h b/c_src/nif_helpers.h
index 8c1cfa4..111ea84 100644
--- a/c_src/nif_helpers.h
+++ b/c_src/nif_helpers.h
@@ -125,7 +125,7 @@ void nif_destroy_main_thread(void*);
ERL_NIF_TERM nif_thread_cast(ErlNifEnv*, void (*f)(nif_thread_arg*), int a, ...);
ERL_NIF_TERM nif_thread_call(ErlNifEnv*, ERL_NIF_TERM (*f)(ErlNifEnv*, nif_thread_arg*), int a, ...);
-#define NIF_CAST_HANDLER(f) void f(nif_thread_arg* args)
-#define NIF_CALL_HANDLER(f) ERL_NIF_TERM f(ErlNifEnv* env, nif_thread_arg* args)
+#define NIF_CAST_HANDLER(f) static void f(nif_thread_arg* args)
+#define NIF_CALL_HANDLER(f) static ERL_NIF_TERM f(ErlNifEnv* env, nif_thread_arg* args)
#endif