diff --git a/Make.defaults b/Make.defaults index e54f5b7..0a19003 100755 --- a/Make.defaults +++ b/Make.defaults @@ -206,11 +206,11 @@ endif ifeq (FreeBSD, $(findstring FreeBSD, $(OS))) CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \ - -funsigned-char -fshort-wchar -fno-strict-aliasing \ + -funsigned-char -fno-strict-aliasing \ -ffreestanding -fno-stack-protector else CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \ - -funsigned-char -fshort-wchar -fno-strict-aliasing \ + -funsigned-char -fno-strict-aliasing \ -ffreestanding -fno-stack-protector -fno-stack-check \ $(if $(findstring gcc,$(CC)),-fno-merge-all-constants,) endif diff --git a/inc/aarch64/efibind.h b/inc/aarch64/efibind.h index c670f84..827b066 100644 --- a/inc/aarch64/efibind.h +++ b/inc/aarch64/efibind.h @@ -40,7 +40,7 @@ typedef int64_t intptr_t; #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 typedef uint64_t UINT64; diff --git a/inc/arm/efibind.h b/inc/arm/efibind.h index 3a95e85..6094c65 100644 --- a/inc/arm/efibind.h +++ b/inc/arm/efibind.h @@ -48,7 +48,7 @@ typedef int32_t intptr_t; #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 typedef uint64_t UINT64; diff --git a/inc/ia32/efibind.h b/inc/ia32/efibind.h index accedce..a82aef6 100644 --- a/inc/ia32/efibind.h +++ b/inc/ia32/efibind.h @@ -87,7 +87,7 @@ Revision History #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 diff --git a/inc/ia64/efibind.h b/inc/ia64/efibind.h index efdbd0e..e68b0d8 100644 --- a/inc/ia64/efibind.h +++ b/inc/ia64/efibind.h @@ -74,7 +74,7 @@ Revision History #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 typedef uint64_t UINT64; diff --git a/inc/loongarch64/efibind.h b/inc/loongarch64/efibind.h index e5b2318..6fc7b65 100644 --- a/inc/loongarch64/efibind.h +++ b/inc/loongarch64/efibind.h @@ -44,7 +44,7 @@ typedef int64_t intptr_t; #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 typedef uint64_t UINT64; diff --git a/inc/mips64el/efibind.h b/inc/mips64el/efibind.h index fbdff30..63b1b23 100644 --- a/inc/mips64el/efibind.h +++ b/inc/mips64el/efibind.h @@ -42,7 +42,7 @@ typedef int64_t intptr_t; #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 typedef uint64_t UINT64; diff --git a/inc/riscv64/efibind.h b/inc/riscv64/efibind.h index 1a8b1dc..5558e8b 100644 --- a/inc/riscv64/efibind.h +++ b/inc/riscv64/efibind.h @@ -17,13 +17,12 @@ */ #include +#include // // Basic EFI types of various widths // -#include - typedef uint64_t UINT64; typedef int64_t INT64; typedef uint32_t UINT32; @@ -33,7 +32,7 @@ typedef int16_t INT16; typedef uint8_t UINT8; typedef int8_t INT8; typedef char CHAR8; -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 #undef VOID typedef void VOID; diff --git a/inc/x86_64/efibind.h b/inc/x86_64/efibind.h index e454ed2..8f431cb 100644 --- a/inc/x86_64/efibind.h +++ b/inc/x86_64/efibind.h @@ -98,7 +98,7 @@ Revision History #include -typedef wchar_t CHAR16; +typedef uint16_t CHAR16; #define WCHAR CHAR16 typedef uint64_t UINT64;