1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

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).
This commit is contained in:
George Marques
2020-11-07 15:00:28 -03:00
parent 0b910cd8b7
commit 82576371ef

View File

@@ -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;