Fix visibility for GCC

This commit is contained in:
O01eg 2020-12-25 09:56:00 +03:00
parent 545c894614
commit 1393ededfd
No known key found for this signature in database
GPG key ID: 5758B9FC79543529

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