diff options
Diffstat (limited to 'include/godot_cpp/core/Rect2.hpp')
-rw-r--r-- | include/godot_cpp/core/Rect2.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/godot_cpp/core/Rect2.hpp b/include/godot_cpp/core/Rect2.hpp index 792972d..849fa68 100644 --- a/include/godot_cpp/core/Rect2.hpp +++ b/include/godot_cpp/core/Rect2.hpp @@ -1,6 +1,16 @@ #ifndef RECT2_H #define RECT2_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 "Vector2.hpp" #include <cmath> @@ -16,7 +26,7 @@ typedef Vector2 Point2; class Transform2D; -struct Rect2 { +struct GD_CPP_CORE_API Rect2 { Point2 pos; Size2 size; |