Explorar o código

Fix visibility for GCC

O01eg %!s(int64=4) %!d(string=hai) anos
pai
achega
1393ededfd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      modules/gdnative/include/gdnative/gdnative.h

+ 3 - 1
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