summaryrefslogtreecommitdiffstats
path: root/modules/text_server_adv/script_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/text_server_adv/script_iterator.h')
-rw-r--r--modules/text_server_adv/script_iterator.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/text_server_adv/script_iterator.h b/modules/text_server_adv/script_iterator.h
index 1e11b51521..2bd045b91a 100644
--- a/modules/text_server_adv/script_iterator.h
+++ b/modules/text_server_adv/script_iterator.h
@@ -31,7 +31,22 @@
#ifndef SCRIPT_ITERATOR_H
#define SCRIPT_ITERATOR_H
-#include "servers/text_server.h"
+#ifdef GDEXTENSION
+
+// Headers for building as GDExtension plug-in.
+#include <godot_cpp/godot.hpp>
+#include <godot_cpp/templates/vector.hpp>
+#include <godot_cpp/variant/string.hpp>
+
+using namespace godot;
+
+#else
+
+// Headers for building as built-in module.
+#include "core/string/ustring.h"
+#include "core/templates/vector.h"
+
+#endif
#include <unicode/uchar.h>
#include <unicode/uloc.h>