diff options
author | Ignacio Roldán Etcheverry <ignalfonsore@gmail.com> | 2022-09-08 20:13:49 +0200 |
---|---|---|
committer | Ignacio Roldán Etcheverry <ignalfonsore@gmail.com> | 2022-09-08 20:57:28 +0200 |
commit | 8199a209c21dfe28e331509bda7f92fb5dc595c1 (patch) | |
tree | ffd8396f55c35893982d608d3273769482e9405d /modules/mono/mono_gd/gd_mono.h | |
parent | 337e4d185af0ff0ea2dba60abecd4af50b9d10f8 (diff) | |
download | redot-engine-8199a209c21dfe28e331509bda7f92fb5dc595c1.tar.gz |
C#: Fix module builds for Windows 32-bit with mingw-w64
The lambda was giving issues, so I re-wrote it as a static function.
Diffstat (limited to 'modules/mono/mono_gd/gd_mono.h')
-rw-r--r-- | modules/mono/mono_gd/gd_mono.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/mono_gd/gd_mono.h b/modules/mono/mono_gd/gd_mono.h index 43811a4325..21252a5dca 100644 --- a/modules/mono/mono_gd/gd_mono.h +++ b/modules/mono/mono_gd/gd_mono.h @@ -35,11 +35,13 @@ #include "../godotsharp_defs.h" +#ifndef GD_CLR_STDCALL #ifdef WIN32 #define GD_CLR_STDCALL __stdcall #else #define GD_CLR_STDCALL #endif +#endif namespace gdmono { @@ -56,8 +58,6 @@ struct PluginCallbacks { } // namespace gdmono -#undef GD_CLR_STDCALL - class GDMono { bool runtime_initialized; bool finalizing_scripts_domain; |