diff --git a/lib/nimbase.h b/lib/nimbase.h index f61be7a5bc4f..45fe4252cf40 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