summaryrefslogtreecommitdiff
path: root/src/init_gdextension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init_gdextension.cpp')
-rw-r--r--src/init_gdextension.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init_gdextension.cpp b/src/init_gdextension.cpp
index c923881..b252379 100644
--- a/src/init_gdextension.cpp
+++ b/src/init_gdextension.cpp
@@ -37,6 +37,12 @@
#include "WebRTCLibDataChannel.hpp"
#include "WebRTCLibPeerConnection.hpp"
+#ifdef _WIN32
+// See upstream godot-cpp GH-771.
+#undef GDN_EXPORT
+#define GDN_EXPORT __declspec(dllexport)
+#endif
+
using namespace godot;
using namespace godot_webrtc;