diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-12 09:41:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 09:41:56 +0100 |
commit | fec979b850e0bcb63195bfa5f518557b18e9c5b4 (patch) | |
tree | 1ee1bf245e508501ad505ad951070575715d4040 | |
parent | be4669d08d379ff40082bea37b4a443ab9ed1b8d (diff) | |
parent | 1393ededfdaec154d2ce27c9b19fa3fae9538bfc (diff) |
Merge pull request #44671 from o01eg/fix-gcc-visibility
GDNative: Fix symbols visibility for GCC
-rw-r--r-- | modules/gdnative/include/gdnative/gdnative.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdnative/include/gdnative/gdnative.h b/modules/gdnative/include/gdnative/gdnative.h index a4ed7ebb8c..9af9226a79 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 |