diff options
author | Karroffel <therzog@mail.de> | 2017-03-15 23:19:58 +0100 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-03-15 23:19:58 +0100 |
commit | 8d63048c6df08da5f0f88b62b2868c6938c222b7 (patch) | |
tree | c9113e2139838b11d3040469104a153d1f45a4af /include/godot_cpp/core/Vector2.hpp | |
parent | bce9ac109d63d67c3e7f0b25df8aa9d72e094d1b (diff) | |
download | redot-cpp-8d63048c6df08da5f0f88b62b2868c6938c222b7.tar.gz |
Windows compatibility
Diffstat (limited to 'include/godot_cpp/core/Vector2.hpp')
-rw-r--r-- | include/godot_cpp/core/Vector2.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/godot_cpp/core/Vector2.hpp b/include/godot_cpp/core/Vector2.hpp index b62ddfd..73dd562 100644 --- a/include/godot_cpp/core/Vector2.hpp +++ b/include/godot_cpp/core/Vector2.hpp @@ -2,6 +2,16 @@ #define VECTOR2_H +#if defined(_WIN32) +# ifdef _GD_CPP_CORE_API_IMPL +# define GD_CPP_CORE_API __declspec(dllexport) +# else +# define GD_CPP_CORE_API __declspec(dllimport) +# endif +#else +# define GD_CPP_CORE_API +#endif + #include <godot/godot_vector2.h> #include "Defs.hpp" @@ -10,7 +20,7 @@ namespace godot { class String; -struct Vector2 { +struct GD_CPP_CORE_API Vector2 { union { real_t x; |