diff options
author | O01eg <o01eg@yandex.ru> | 2020-12-25 09:56:00 +0300 |
---|---|---|
committer | O01eg <o01eg@yandex.ru> | 2020-12-25 09:56:00 +0300 |
commit | 1393ededfdaec154d2ce27c9b19fa3fae9538bfc (patch) | |
tree | 994eddffd37728969d6530aec97cbfe74a51c600 /modules/gdnative/include | |
parent | 545c89461464ee14b2b806dd2dd2c0eef110e181 (diff) |
Fix visibility for GCC
Diffstat (limited to 'modules/gdnative/include')
-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 6a0a375da8..7ceb4fb81c 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 |