소스 검색

Merge pull request #9246 from karroffel/gdnative-header-export-thingy

[GDNative] added GDN_EXPORT macro for libraries
Thomas Herzog 8 년 전
부모
커밋
f41cc5b590
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
 #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>