diff --git a/include/godot_cpp/core/defs.hpp b/include/godot_cpp/core/defs.hpp index c03db503..fc2f00c5 100644 --- a/include/godot_cpp/core/defs.hpp +++ b/include/godot_cpp/core/defs.hpp @@ -38,7 +38,7 @@ #if !defined(GDE_EXPORT) #if defined(_WIN32) #define GDE_EXPORT __declspec(dllexport) -#elif defined(__GNUC__) +#elif defined(__GNUC__) && !defined(__MINGW32__) #define GDE_EXPORT __attribute__((visibility("default"))) #else #define GDE_EXPORT