mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
synchronize interget type definition from MdePkg's processbinding.h to make build pass under GCC44 tool chain
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10543 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
21ecdf15a0
commit
5a2bc7144a
@ -82,7 +82,9 @@ typedef UINT64 EFI_LBA;
|
|||||||
// use the correct C calling convention. All protocol member functions and
|
// use the correct C calling convention. All protocol member functions and
|
||||||
// EFI intrinsics are required to modify thier member functions with EFIAPI.
|
// EFI intrinsics are required to modify thier member functions with EFIAPI.
|
||||||
//
|
//
|
||||||
#define EFIAPI _EFIAPI
|
#ifndef EFIAPI
|
||||||
|
#define EFIAPI _EFIAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI Constants. They may exist in other build structures, so #ifndef them.
|
// EFI Constants. They may exist in other build structures, so #ifndef them.
|
||||||
|
@ -128,45 +128,27 @@ Abstract:
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_EXTENSIONS)
|
||||||
#if !defined(__GNUC__) && (__STDC_VERSION__ < 199901L)
|
|
||||||
//
|
//
|
||||||
// No ANSI C 2000 stdint.h integer width declarations, so define equivalents
|
// use Microsoft C complier dependent integer width types
|
||||||
//
|
//
|
||||||
|
typedef unsigned __int64 uint64_t;
|
||||||
#if _MSC_EXTENSIONS
|
typedef __int64 int64_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
//
|
typedef __int32 int32_t;
|
||||||
// use Microsoft* C complier dependent interger width types
|
typedef unsigned short uint16_t;
|
||||||
//
|
typedef short int16_t;
|
||||||
typedef unsigned __int64 uint64_t;
|
typedef unsigned char uint8_t;
|
||||||
typedef __int64 int64_t;
|
typedef char int8_t;
|
||||||
typedef unsigned __int32 uint32_t;
|
|
||||||
typedef __int32 int32_t;
|
|
||||||
typedef unsigned short uint16_t;
|
|
||||||
typedef short int16_t;
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
typedef char int8_t;
|
|
||||||
#else
|
|
||||||
|
|
||||||
//
|
|
||||||
// Assume standard IA-32 alignment.
|
|
||||||
// BugBug: Need to check portability of long long
|
|
||||||
//
|
|
||||||
typedef unsigned long long uint64_t;
|
|
||||||
typedef long long int64_t;
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
typedef int int32_t;
|
|
||||||
typedef unsigned short uint16_t;
|
|
||||||
typedef short int16_t;
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
typedef char int8_t;
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
//
|
typedef unsigned long long uint64_t;
|
||||||
// Use ANSI C 2000 stdint.h integer width declarations
|
typedef long long int64_t;
|
||||||
//
|
typedef unsigned int uint32_t;
|
||||||
#include "stdint.h"
|
typedef int int32_t;
|
||||||
|
typedef unsigned short uint16_t;
|
||||||
|
typedef short int16_t;
|
||||||
|
typedef unsigned char uint8_t;
|
||||||
|
typedef char int8_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user