From 1393ededfdaec154d2ce27c9b19fa3fae9538bfc Mon Sep 17 00:00:00 2001 From: O01eg Date: Fri, 25 Dec 2020 09:56:00 +0300 Subject: [PATCH] Fix visibility for GCC --- modules/gdnative/include/gdnative/gdnative.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gdnative/include/gdnative/gdnative.h b/modules/gdnative/include/gdnative/gdnative.h index 6a0a375da89..7ceb4fb81c5 100644 --- a/modules/gdnative/include/gdnative/gdnative.h +++ b/modules/gdnative/include/gdnative/gdnative.h @@ -53,7 +53,9 @@ extern "C" { #endif // This is for libraries *using* the header, NOT GODOT EXPOSING STUFF!! -#ifdef _WIN32 +#ifdef __GNUC__ +#define GDN_EXPORT __attribute__((visibility("default"))) +#elif defined(_WIN32) #define GDN_EXPORT __declspec(dllexport) #else #define GDN_EXPORT