From 82576371efd101a2ad07284dd338b5e5813a5a45 Mon Sep 17 00:00:00 2001 From: George Marques Date: Sat, 7 Nov 2020 15:00:28 -0300 Subject: GDNative: Define special char types in string.h Those are standard types in C++ but not in C. This also removes the wchar header which is not needed anymore and use stddef.h instead (which is needed for size_t). --- modules/gdnative/include/gdnative/string.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/gdnative') diff --git a/modules/gdnative/include/gdnative/string.h b/modules/gdnative/include/gdnative/string.h index 0582d95f63..6043351e84 100644 --- a/modules/gdnative/include/gdnative/string.h +++ b/modules/gdnative/include/gdnative/string.h @@ -35,8 +35,13 @@ extern "C" { #endif +#include #include -#include + +#ifndef __cplusplus +typedef uint32_t char32_t; +typedef uint16_t char16_t; +#endif typedef char32_t godot_char_type; -- cgit v1.2.3