mirror of https://github.com/acidanthera/audk.git
EdkCompatibilityPkg IA32 EfiBind.h: Do not include stdint.h
Merge from MdePkg/Include/Ia32/ProcessorBind.h. Do not include stdint.h. Instead define the basic types ourselves. This fixes a build issue with GCC on X64 Linux. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10584 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4ea439fb1d
commit
0e7e330262
|
@ -173,16 +173,12 @@ Abstract:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if !defined(__GNUC__) && (__STDC_VERSION__ < 199901L)
|
#if defined(_MSC_EXTENSIONS)
|
||||||
//
|
|
||||||
// No ANSI C 2000 stdint.h integer width declarations, so define equivalents
|
|
||||||
//
|
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// use Microsoft* C complier dependent interger width types
|
// use Microsoft C complier dependent integer width types
|
||||||
//
|
//
|
||||||
|
|
||||||
typedef unsigned __int64 uint64_t;
|
typedef unsigned __int64 uint64_t;
|
||||||
typedef __int64 int64_t;
|
typedef __int64 int64_t;
|
||||||
typedef unsigned __int32 uint32_t;
|
typedef unsigned __int32 uint32_t;
|
||||||
|
@ -191,12 +187,7 @@ Abstract:
|
||||||
typedef short int16_t;
|
typedef short int16_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned char uint8_t;
|
||||||
typedef char int8_t;
|
typedef char int8_t;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
//
|
|
||||||
// Assume standard IA-32 alignment.
|
|
||||||
// BugBug: Need to check portability of long long
|
|
||||||
//
|
|
||||||
typedef unsigned long long uint64_t;
|
typedef unsigned long long uint64_t;
|
||||||
typedef long long int64_t;
|
typedef long long int64_t;
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned int uint32_t;
|
||||||
|
@ -205,12 +196,6 @@ Abstract:
|
||||||
typedef short int16_t;
|
typedef short int16_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned char uint8_t;
|
||||||
typedef char int8_t;
|
typedef char int8_t;
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
//
|
|
||||||
// Use ANSI C 2000 stdint.h integer width declarations
|
|
||||||
//
|
|
||||||
#include "stdint.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue