You've already forked godot
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user