]>
Commit | Line | Data |
---|---|---|
30fdf114 | 1 | /** @file\r |
97fa0ee9 | 2 | Include file for the WinNt Library\r |
30fdf114 | 3 | \r |
4805b4b5 | 4 | Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r |
40d841f6 | 5 | This program and the accompanying materials\r |
30fdf114 LG |
6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
30fdf114 LG |
13 | **/\r |
14 | \r | |
15 | #ifndef __WIN_NT_INCLUDE_H__\r | |
16 | #define __WIN_NT_INCLUDE_H__\r | |
17 | \r | |
18 | #define GUID _WINNT_DUP_GUID_____\r | |
19 | #define _LIST_ENTRY _WINNT_DUP_LIST_ENTRY_FORWARD\r | |
20 | #define LIST_ENTRY _WINNT_DUP_LIST_ENTRY\r | |
4805b4b5 YL |
21 | \r |
22 | #if (_MSC_VER < 1800)\r | |
30fdf114 LG |
23 | #define InterlockedIncrement _WINNT_DUP_InterlockedIncrement\r |
24 | #define InterlockedDecrement _WINNT_DUP_InterlockedDecrement\r | |
25 | #define InterlockedCompareExchange64 _WINNT_DUP_InterlockedCompareExchange64\r | |
4805b4b5 YL |
26 | #endif\r |
27 | \r | |
30fdf114 LG |
28 | #undef UNALIGNED\r |
29 | #undef CONST\r | |
30 | #undef VOID\r | |
31 | \r | |
32 | #ifndef __GNUC__\r | |
33 | #include "windows.h"\r | |
34 | \r | |
35 | //\r | |
36 | // Win32 include files do not compile clean with /W4, so we use the warning\r | |
37 | // pragma to suppress the warnings for Win32 only. This way our code can stil\r | |
38 | // compile at /W4 (highest warning level) with /WX (warnings cause build\r | |
39 | // errors).\r | |
40 | //\r | |
41 | #pragma warning(disable : 4115)\r | |
42 | #pragma warning(disable : 4201)\r | |
43 | #pragma warning(disable : 4214)\r | |
44 | #pragma warning(disable : 4028)\r | |
45 | #pragma warning(disable : 4133)\r | |
46 | \r | |
47 | //\r | |
48 | // Set the warnings back on as the EFI code must be /W4.\r | |
49 | //\r | |
50 | #pragma warning(default : 4115)\r | |
51 | #pragma warning(default : 4201)\r | |
52 | #pragma warning(default : 4214)\r | |
53 | \r | |
54 | #endif\r | |
55 | \r | |
56 | #undef GUID\r | |
57 | #undef _LIST_ENTRY\r | |
58 | #undef LIST_ENTRY\r | |
59 | #undef InterlockedIncrement\r | |
60 | #undef InterlockedDecrement\r | |
61 | #undef InterlockedCompareExchange64\r | |
62 | #undef InterlockedCompareExchangePointer\r | |
63 | \r | |
64 | #define VOID void\r | |
65 | \r | |
66 | //\r | |
67 | // Prevent collisions with Windows API name macros that deal with Unicode/Not issues\r | |
68 | //\r | |
69 | #undef LoadImage\r | |
70 | #undef CreateEvent\r | |
71 | \r | |
72 | #endif\r |