فهرست منبع

[GDNative] added GDN_EXPORT macro for libraries

Up until now there only was GDAPI which was used
for the procedures Godot exposes.
Karroffel 8 سال پیش
والد
کامیت
de18b8ee96
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      modules/gdnative/godot.h

+ 7 - 0
modules/gdnative/godot.h

@@ -60,6 +60,13 @@ extern "C" {
 #define GDAPI GDCALLINGCONV
 #define GDAPI GDCALLINGCONV
 #endif
 #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 <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>