aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Herzog2017-06-18 01:19:40 +0200
committerGitHub2017-06-18 01:19:40 +0200
commitf41cc5b590ab2d0cad38213caa1c338f4b8b97af (patch)
tree1668d066e4d8386b2764b37049c305c50b2561a8
parent2da3f48e5a3025ca985a0a7305c0c7ffa9ac1f17 (diff)
parentde18b8ee969713208cf8629f3fd15485c604729f (diff)
downloadgodot-f41cc5b590ab2d0cad38213caa1c338f4b8b97af.tar.gz
godot-f41cc5b590ab2d0cad38213caa1c338f4b8b97af.tar.zst
godot-f41cc5b590ab2d0cad38213caa1c338f4b8b97af.zip
-rw-r--r--modules/gdnative/godot.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdnative/godot.h b/modules/gdnative/godot.h
index 726bde0b6..1d8699829 100644
--- a/modules/gdnative/godot.h
+++ b/modules/gdnative/godot.h
@@ -60,6 +60,13 @@ extern "C" {
#define GDAPI GDCALLINGCONV
#endif
+// This is for libraries *using* the header, NOT GODOT EXPOSING STUFF!!
+#ifdef _WIN32
+#define GDN_EXPORT __declspec(dllexport)
+#else
+#define GDN_EXPORT
+#endif
+
#include <stdbool.h>
#include <stdint.h>