Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 114... | Line 114... | ||
114 | *****************************************************************************/ |
114 | *****************************************************************************/ |
Line 115... | Line 115... | ||
115 | 115 | ||
116 | #ifndef __ACMSVC_H__ |
116 | #ifndef __ACMSVC_H__ |
Line -... | Line 117... | ||
- | 117 | #define __ACMSVC_H__ |
|
- | 118 | ||
- | 119 | ||
- | 120 | /* |
|
- | 121 | * Map low I/O functions for MS. This allows us to disable MS language |
|
- | 122 | * extensions for maximum portability. |
|
- | 123 | */ |
|
- | 124 | #define open _open |
|
- | 125 | #define read _read |
|
- | 126 | #define write _write |
|
- | 127 | #define close _close |
|
- | 128 | #define stat _stat |
|
- | 129 | #define fstat _fstat |
|
- | 130 | #define mkdir _mkdir |
|
- | 131 | #define strlwr _strlwr |
|
- | 132 | #define O_RDONLY _O_RDONLY |
|
- | 133 | #define O_BINARY _O_BINARY |
|
- | 134 | #define O_CREAT _O_CREAT |
|
- | 135 | #define O_WRONLY _O_WRONLY |
|
- | 136 | #define O_TRUNC _O_TRUNC |
|
- | 137 | #define S_IREAD _S_IREAD |
|
- | 138 | #define S_IWRITE _S_IWRITE |
|
- | 139 | #define S_IFDIR _S_IFDIR |
|
- | 140 | ||
- | 141 | /* Eliminate warnings for "old" (non-secure) versions of clib functions */ |
|
- | 142 | ||
- | 143 | #ifndef _CRT_SECURE_NO_WARNINGS |
|
- | 144 | #define _CRT_SECURE_NO_WARNINGS |
|
- | 145 | #endif |
|
- | 146 | ||
- | 147 | /* Eliminate warnings for POSIX clib function names (open, write, etc.) */ |
|
- | 148 | ||
- | 149 | #ifndef _CRT_NONSTDC_NO_DEPRECATE |
|
- | 150 | #define _CRT_NONSTDC_NO_DEPRECATE |
|
117 | #define __ACMSVC_H__ |
151 | #endif |
118 | 152 | ||
- | 153 | #define COMPILER_DEPENDENT_INT64 __int64 |
|
Line 119... | Line 154... | ||
119 | #define COMPILER_DEPENDENT_INT64 __int64 |
154 | #define COMPILER_DEPENDENT_UINT64 unsigned __int64 |
120 | #define COMPILER_DEPENDENT_UINT64 unsigned __int64 |
155 | #define ACPI_INLINE __inline |
121 | 156 | ||
122 | /* |
157 | /* |
Line 177... | Line 212... | ||
177 | #pragma warning(disable:4706) |
212 | #pragma warning(disable:4706) |
Line 178... | Line 213... | ||
178 | 213 | ||
179 | /* warn C4131: uses old-style declarator (iASL compiler only) */ |
214 | /* warn C4131: uses old-style declarator (iASL compiler only) */ |
Line -... | Line 215... | ||
- | 215 | #pragma warning(disable:4131) |
|
- | 216 | ||
- | 217 | #if _MSC_VER > 1200 /* Versions above VC++ 6 */ |
|
Line 180... | Line 218... | ||
180 | #pragma warning(disable:4131) |
218 | #pragma warning( disable : 4295 ) /* needed for acpredef.h array */ |