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