[GDNative] added GDN_EXPORT macro for libraries
Up until now there only was GDAPI which was used for the procedures Godot exposes.
This commit is contained in:
parent
2da3f48e5a
commit
de18b8ee96
1 changed files with 7 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue