diff options
Diffstat (limited to 'src/init_gdnative.cpp')
-rw-r--r-- | src/init_gdnative.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init_gdnative.cpp b/src/init_gdnative.cpp index 77669af..00109a4 100644 --- a/src/init_gdnative.cpp +++ b/src/init_gdnative.cpp @@ -34,6 +34,12 @@ #include <gdnative_api_struct.gen.h> #include <net/godot_net.h> +#ifdef _WIN32 +// See upstream godot GH-62173. +#undef GDN_EXPORT +#define GDN_EXPORT __declspec(dllexport) +#endif + /* Singleton */ static bool _singleton = false; static const godot_object *_singleton_lib = NULL; |