Make CHAR8 use unsigned char

* Means we don't have to switch the implementation of char to unsigned char
* Matches the underlying type of char8_t from C++20

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2024-05-29 16:26:52 +01:00
parent edfda7c396
commit ce1ec9d27b
No known key found for this signature in database
GPG Key ID: 9A5B19E18CD0013C
9 changed files with 10 additions and 10 deletions

View File

@ -206,11 +206,11 @@ endif
ifeq (FreeBSD, $(findstring FreeBSD, $(OS)))
CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \
-funsigned-char -fno-strict-aliasing \
-fno-strict-aliasing \
-ffreestanding -fno-stack-protector
else
CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \
-funsigned-char -fno-strict-aliasing \
-fno-strict-aliasing \
-ffreestanding -fno-stack-protector -fno-stack-check \
$(if $(findstring gcc,$(CC)),-fno-merge-all-constants,)
endif

View File

@ -53,7 +53,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID

View File

@ -61,7 +61,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID

View File

@ -103,7 +103,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID

View File

@ -87,7 +87,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID

View File

@ -57,7 +57,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID

View File

@ -55,7 +55,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID

View File

@ -31,7 +31,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef int8_t INT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef uint16_t CHAR16;
#define WCHAR CHAR16
#undef VOID

View File

@ -113,7 +113,7 @@ typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef unsigned char CHAR8;
typedef int8_t INT8;
#undef VOID