From de18b8ee969713208cf8629f3fd15485c604729f Mon Sep 17 00:00:00 2001 From: Karroffel Date: Sun, 18 Jun 2017 01:16:10 +0200 Subject: [GDNative] added GDN_EXPORT macro for libraries Up until now there only was GDAPI which was used for the procedures Godot exposes. --- modules/gdnative/godot.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/gdnative') diff --git a/modules/gdnative/godot.h b/modules/gdnative/godot.h index 726bde0b65..1d86998291 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 #include -- cgit v1.2.3