diff options
author | George Marques <george@gmarqu.es> | 2020-11-07 15:00:28 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-11-07 16:09:14 -0300 |
commit | 82576371efd101a2ad07284dd338b5e5813a5a45 (patch) | |
tree | 36c650fa1221c69d8a973f687904c78bc115eb12 /modules/gdnative/include | |
parent | 0b910cd8b7b4ef661a2b52dd8c5962363e6c5150 (diff) |
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).
Diffstat (limited to 'modules/gdnative/include')
-rw-r--r-- | modules/gdnative/include/gdnative/string.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <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; |