Make CHAR8 and similar be defined the same way edk2 does it.

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2019-08-27 13:44:15 -04:00 committed by Nigel Croxon
parent b9c4b23d90
commit 14899d899b
7 changed files with 48 additions and 10 deletions

View File

@ -41,6 +41,9 @@ typedef int64_t intptr_t;
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
# define __WCHAR_TYPE__ short # define __WCHAR_TYPE__ short
#endif #endif
#ifndef __CHAR16_TYPE__
# define __CHAR16_TYPE__ unsigned short
#endif
typedef uint64_t UINT64; typedef uint64_t UINT64;
typedef int64_t INT64; typedef int64_t INT64;
@ -49,9 +52,13 @@ typedef uint32_t UINT32;
typedef int32_t INT32; typedef int32_t INT32;
typedef uint16_t UINT16; typedef uint16_t UINT16;
typedef __CHAR16_TYPE__ CHAR16;
typedef int16_t INT16; typedef int16_t INT16;
typedef uint8_t UINT8; typedef uint8_t UINT8;
typedef char CHAR8;
typedef int8_t INT8; typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR; typedef __WCHAR_TYPE__ WCHAR;
#undef VOID #undef VOID

View File

@ -49,6 +49,9 @@ typedef int32_t intptr_t;
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
# define __WCHAR_TYPE__ short # define __WCHAR_TYPE__ short
#endif #endif
#ifndef __CHAR16_TYPE__
# define __CHAR16_TYPE__ unsigned short
#endif
typedef uint64_t UINT64; typedef uint64_t UINT64;
typedef int64_t INT64; typedef int64_t INT64;
@ -57,9 +60,13 @@ typedef uint32_t UINT32;
typedef int32_t INT32; typedef int32_t INT32;
typedef uint16_t UINT16; typedef uint16_t UINT16;
typedef __CHAR16_TYPE__ CHAR16;
typedef int16_t INT16; typedef int16_t INT16;
typedef uint8_t UINT8; typedef uint8_t UINT8;
typedef char CHAR8;
typedef int8_t INT8; typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR; typedef __WCHAR_TYPE__ WCHAR;
#undef VOID #undef VOID

View File

@ -20,9 +20,8 @@ Revision History
--*/ --*/
typedef UINT16 CHAR16; typedef unsigned char BOOLEAN;
typedef UINT8 CHAR8;
typedef UINT8 BOOLEAN;
#ifndef CONST #ifndef CONST
#define CONST const #define CONST const
#endif #endif
@ -194,7 +193,7 @@ typedef struct {
// International Language // International Language
// //
typedef UINT8 ISO_639_2; typedef CHAR8 ISO_639_2;
#define ISO_639_2_ENTRY_SIZE 3 #define ISO_639_2_ENTRY_SIZE 3
// //

View File

@ -88,6 +88,9 @@ Revision History
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
# define __WCHAR_TYPE__ short # define __WCHAR_TYPE__ short
#endif #endif
#ifndef __CHAR16_TYPE__
# define __CHAR16_TYPE__ unsigned short
#endif
typedef uint64_t UINT64; typedef uint64_t UINT64;
typedef int64_t INT64; typedef int64_t INT64;
@ -98,9 +101,13 @@ typedef int64_t INT64;
#endif #endif
typedef uint16_t UINT16; typedef uint16_t UINT16;
typedef __CHAR16_TYPE__ CHAR16;
typedef int16_t INT16; typedef int16_t INT16;
typedef uint8_t UINT8; typedef uint8_t UINT8;
typedef char CHAR8;
typedef int8_t INT8; typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR; typedef __WCHAR_TYPE__ WCHAR;
#undef VOID #undef VOID

View File

@ -74,18 +74,25 @@ Revision History
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
# define __WCHAR_TYPE__ short # define __WCHAR_TYPE__ short
#endif #endif
#ifndef __CHAR16_TYPE__
# define __CHAR16_TYPE__ unsigned short
#endif
typedef uint64_t UINT64; typedef uint64_t UINT64;
typedef int64_t INT64; typedef int64_t INT64;
typedef uint32_t UINT32; typedef uint32_t UINT32;
typedef int32_t INT32; typedef int32_t INT32;
typedef uint16_t UINT16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR;
typedef uint16_t UINT16;
typedef __CHAR16_TYPE__ CHAR16;
typedef int16_t INT16;
typedef uint8_t UINT8;
typedef char CHAR8;
typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR;
#undef VOID #undef VOID
#define VOID void #define VOID void

View File

@ -43,6 +43,9 @@ typedef int64_t intptr_t;
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
# define __WCHAR_TYPE__ short # define __WCHAR_TYPE__ short
#endif #endif
#ifndef __CHAR16_TYPE__
# define __CHAR16_TYPE__ unsigned short
#endif
typedef uint64_t UINT64; typedef uint64_t UINT64;
typedef int64_t INT64; typedef int64_t INT64;
@ -51,9 +54,13 @@ typedef uint32_t UINT32;
typedef int32_t INT32; typedef int32_t INT32;
typedef uint16_t UINT16; typedef uint16_t UINT16;
typedef __CHAR16_TYPE__ CHAR16;
typedef int16_t INT16; typedef int16_t INT16;
typedef uint8_t UINT8; typedef uint8_t UINT8;
typedef char CHAR8;
typedef int8_t INT8; typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR; typedef __WCHAR_TYPE__ WCHAR;
#undef VOID #undef VOID

View File

@ -109,9 +109,13 @@ typedef int64_t INT64;
#endif #endif
typedef uint16_t UINT16; typedef uint16_t UINT16;
typedef __CHAR16_TYPE__ CHAR16;
typedef int16_t INT16; typedef int16_t INT16;
typedef uint8_t UINT8; typedef uint8_t UINT8;
typedef char CHAR8;
typedef int8_t INT8; typedef int8_t INT8;
typedef __WCHAR_TYPE__ WCHAR; typedef __WCHAR_TYPE__ WCHAR;
#undef VOID #undef VOID