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:
parent
edfda7c396
commit
ce1ec9d27b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user