summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/nimbase.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index f52185800..a114430ab 100755
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -132,11 +132,6 @@ __clang__
 /* specify no calling convention */
 #define N_NOCONV_PTR(rettype, name) rettype (*name)
 
-#define N_CLOSURE(rettype, name) rettype name
-/* specify no calling convention */
-#define N_CLOSURE_PTR(rettype, name) rettype (*name)
-
-
 #if defined(__GNUC__) || defined(__ICC__)
 #  define N_NOINLINE(rettype, name) rettype __attribute__((noinline)) name
 #elif defined(_MSC_VER)
@@ -157,6 +152,9 @@ __clang__
 #  define N_NIMCALL_PTR(rettype, name) rettype (*name)
 #endif
 
+#define N_CLOSURE(rettype, name) N_NIMCALL(rettype, name)
+#define N_CLOSURE_PTR(rettype, name) N_NIMCALL_PTR(rettype, name)
+
 /* ----------------------------------------------------------------------- */
 
 /* from float_cast.h: */