blob: 18436247da445083ea54ca33c628887f6f58bcf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-aa,v 1.4 2008/03/11 14:36:13 joerg Exp $
--- src/AtomBios/includes/CD_Common_Types.h.orig 2008-03-11 15:17:08.000000000 +0100
+++ src/AtomBios/includes/CD_Common_Types.h
@@ -37,32 +37,8 @@ Revision History:
#ifndef _COMMON_TYPES_H_
#define _COMMON_TYPES_H_
- #ifndef LINUX
- #if _MSC_EXTENSIONS
-
- //
- // use Microsoft* C complier dependent interger width types
- //
- // typedef unsigned __int64 uint64_t;
- // typedef __int64 int64_t;
- typedef unsigned __int32 uint32_t;
- typedef __int32 int32_t;
-#elif defined (__linux__) || defined (__NetBSD__) || defined(__sun) || defined(__OpenBSD__) || defined (__FreeBSD__)
- typedef unsigned int uint32_t;
- typedef int int32_t;
- #else
- typedef unsigned long uint32_t;
- typedef signed long int32_t;
- #endif
- typedef unsigned char uint8_t;
-#if (defined(__sun) && defined(_CHAR_IS_SIGNED))
- typedef char int8_t;
-#else
- typedef signed char int8_t;
-#endif
- typedef unsigned short uint16_t;
- typedef signed short int16_t;
- #endif
+#include <inttypes.h>
+
#ifndef UEFI_BUILD
typedef signed int intn_t;
typedef unsigned int uintn_t;
|