Merge pull request #44671 from o01eg/fix-gcc-visibility

GDNative: Fix symbols visibility for GCC
This commit is contained in:
Rémi Verschelde 2021-03-12 09:41:56 +01:00 committed by GitHub
commit fec979b850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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