summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/String.hpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-03-15 23:19:58 +0100
committerKarroffel <therzog@mail.de>2017-03-15 23:19:58 +0100
commit8d63048c6df08da5f0f88b62b2868c6938c222b7 (patch)
treec9113e2139838b11d3040469104a153d1f45a4af /include/godot_cpp/core/String.hpp
parentbce9ac109d63d67c3e7f0b25df8aa9d72e094d1b (diff)
downloadredot-cpp-8d63048c6df08da5f0f88b62b2868c6938c222b7.tar.gz
Windows compatibility
Diffstat (limited to 'include/godot_cpp/core/String.hpp')
-rw-r--r--include/godot_cpp/core/String.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/godot_cpp/core/String.hpp b/include/godot_cpp/core/String.hpp
index 6de7037..ec14242 100644
--- a/include/godot_cpp/core/String.hpp
+++ b/include/godot_cpp/core/String.hpp
@@ -1,11 +1,21 @@
#ifndef STRING_H
#define STRING_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_string.h>
namespace godot {
-class String
+class GD_CPP_CORE_API String
{
godot_string _godot_string;
public: