Browse Source

Merge pull request #43383 from vnen/gdnative-string-header

GDNative: Define special char types in string.h
Rémi Verschelde 4 years ago
parent
commit
b51dca64a6
1 changed files with 6 additions and 1 deletions
  1. 6 1
      modules/gdnative/include/gdnative/string.h

+ 6 - 1
modules/gdnative/include/gdnative/string.h

@@ -35,8 +35,13 @@
 extern "C" {
 #endif
 
+#include <stddef.h>
 #include <stdint.h>
-#include <wchar.h>
+
+#ifndef __cplusplus
+typedef uint32_t char32_t;
+typedef uint16_t char16_t;
+#endif
 
 typedef char32_t godot_char_type;