]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/Include/Common/WinNTInclude.h
We enabled X64 native version NT32, and made it works on Windows 7 X64 OS.
[mirror_edk2.git] / Nt32Pkg / Include / Common / WinNTInclude.h
index 91daac6c3c25fc1d85586a9f0dd01dab0d795c0d..3f4fb2373219fc69383a8d656594d97dae00784f 100644 (file)
@@ -1,7 +1,7 @@
-/*++\r
+/**@file\r
 \r
-Copyright (c) 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -15,7 +15,7 @@ Module Name:
 Abstract:\r
   Public include file for the WinNt Library\r
 \r
---*/\r
+**/\r
 \r
 #ifndef __WIN_NT_INCLUDE_H__\r
 #define __WIN_NT_INCLUDE_H__\r
@@ -34,12 +34,22 @@ Abstract:
 #define GUID  _WINNT_DUP_GUID_____\r
 #define _LIST_ENTRY  _WINNT_DUP_LIST_ENTRY_FORWARD\r
 #define LIST_ENTRY   _WINNT_DUP_LIST_ENTRY\r
+#if defined (MDE_CPU_IA32)\r
 #define InterlockedIncrement _WINNT_DUP_InterlockedIncrement\r
 #define InterlockedDecrement _WINNT_DUP_InterlockedDecrement\r
 #define InterlockedCompareExchange64 _WINNT_DUP_InterlockedCompareExchange64\r
+#endif\r
 #undef UNALIGNED\r
 #undef CONST\r
 #undef VOID\r
+#undef DEBUG_EVENT\r
+\r
+// WQBugBug: This typedef is to make "windows.h" buildable.\r
+//                   It should be removed after the root cause why\r
+//                   size_t is undefined when go into the line below is found.\r
+#if defined (MDE_CPU_IA32)\r
+typedef UINT32 size_t ;\r
+#endif\r
 \r
 #include "windows.h"\r
 \r
@@ -50,6 +60,7 @@ Abstract:
 #undef InterlockedDecrement\r
 #undef InterlockedCompareExchange64\r
 #undef InterlockedCompareExchangePointer\r
+#undef CreateEventEx\r
 \r
 #define VOID void\r
 \r