Fix visibility for GCC

(cherry picked from commit 1393ededfd)
This commit is contained in:
O01eg
2020-12-25 09:56:00 +03:00
committed by Rémi Verschelde
parent a550260404
commit 18eca32761

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