From 3853c24c0d71dde983aeb00001cfa4bf59ec9d8c Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 13 Jan 2020 19:05:46 -0800 Subject: [PATCH] refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.} --- lib/nimbase.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/nimbase.h b/lib/nimbase.h index f61be7a5bc4f5..45fe4252cf40e 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -208,11 +208,7 @@ __AVR__ # define N_FASTCALL_PTR(rettype, name) rettype (*name) # define N_SAFECALL_PTR(rettype, name) rettype (*name) # endif -# ifdef __cplusplus -# define N_LIB_EXPORT extern "C" -# else -# define N_LIB_EXPORT extern -# endif +# define N_LIB_EXPORT __attribute__((visibility("default"))) # define N_LIB_IMPORT extern #endif