MdePkg/X64/ProcessorBind.h: Fixes CLANGDWARF X64 compilation

Corrects typedef redefinition, in particular for openssl e_os2.h

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Mikhail Krichanov 2024-07-22 12:54:00 +03:00
parent 75bdb2a996
commit 621dd83262
2 changed files with 13 additions and 54 deletions

View File

@ -126,36 +126,6 @@ typedef unsigned __int32 UINT32;
/// 4-byte signed value. /// 4-byte signed value.
/// ///
typedef __int32 INT32; typedef __int32 INT32;
///
/// 2-byte unsigned value.
///
typedef unsigned short UINT16;
///
/// 2-byte Character. Unless otherwise specified all strings are stored in the
/// UTF-16 encoding format as defined by Unicode 2.1 and ISO/IEC 10646 standards.
///
typedef unsigned short CHAR16;
///
/// 2-byte signed value.
///
typedef short INT16;
///
/// Logical Boolean. 1-byte value containing 0 for FALSE or a 1 for TRUE. Other
/// values are undefined.
///
typedef unsigned char BOOLEAN;
///
/// 1-byte unsigned value.
///
typedef unsigned char UINT8;
///
/// 1-byte Character.
///
typedef char CHAR8;
///
/// 1-byte signed value.
///
typedef signed char INT8;
#else #else
/// ///
/// 8-byte unsigned value. /// 8-byte unsigned value.
@ -173,6 +143,8 @@ typedef unsigned int UINT32;
/// 4-byte signed value. /// 4-byte signed value.
/// ///
typedef int INT32; typedef int INT32;
#endif
/// ///
/// 2-byte unsigned value. /// 2-byte unsigned value.
/// ///
@ -203,7 +175,6 @@ typedef char CHAR8;
/// 1-byte signed value /// 1-byte signed value
/// ///
typedef signed char INT8; typedef signed char INT8;
#endif
/// ///
/// Unsigned value of native width. (4 bytes on supported 32-bit processor instructions; /// Unsigned value of native width. (4 bytes on supported 32-bit processor instructions;

View File

@ -125,36 +125,23 @@ typedef unsigned __int32 UINT32;
/// 4-byte signed value /// 4-byte signed value
/// ///
typedef __int32 INT32; typedef __int32 INT32;
#elif defined (__clang__)
/// ///
/// 2-byte unsigned value /// 8-byte unsigned value
/// ///
typedef unsigned short UINT16; typedef __UINT64_TYPE__ UINT64;
/// ///
/// 2-byte Character. Unless otherwise specified all strings are stored in the /// 8-byte signed value
/// UTF-16 encoding format as defined by Unicode 2.1 and ISO/IEC 10646 standards.
/// ///
typedef unsigned short CHAR16; typedef __INT64_TYPE__ INT64;
/// ///
/// 2-byte signed value /// 4-byte unsigned value
/// ///
typedef short INT16; typedef unsigned int UINT32;
/// ///
/// Logical Boolean. 1-byte value containing 0 for FALSE or a 1 for TRUE. Other /// 4-byte signed value
/// values are undefined.
/// ///
typedef unsigned char BOOLEAN; typedef signed int INT32;
///
/// 1-byte unsigned value
///
typedef unsigned char UINT8;
///
/// 1-byte Character
///
typedef char CHAR8;
///
/// 1-byte signed value
///
typedef signed char INT8;
#else #else
/// ///
/// 8-byte unsigned value /// 8-byte unsigned value
@ -172,6 +159,8 @@ typedef unsigned int UINT32;
/// 4-byte signed value /// 4-byte signed value
/// ///
typedef int INT32; typedef int INT32;
#endif
/// ///
/// 2-byte unsigned value /// 2-byte unsigned value
/// ///
@ -202,7 +191,6 @@ typedef char CHAR8;
/// 1-byte signed value /// 1-byte signed value
/// ///
typedef signed char INT8; typedef signed char INT8;
#endif
/// ///
/// Unsigned value of native width. (4 bytes on supported 32-bit processor instructions, /// Unsigned value of native width. (4 bytes on supported 32-bit processor instructions,