]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix an issue of building BaseTools from sources using VS2013.
authorYingke Liu <yingke.d.liu@intel.com>
Wed, 20 Aug 2014 02:26:07 +0000 (02:26 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 20 Aug 2014 02:26:07 +0000 (02:26 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Hauch, Larry <larry.hauch@intel.com>
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15844 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/C/Common/WinNtInclude.h

index bd33e3dd2a9439778721a69e783eb5310c548e2b..1ad8ba261a9397d4c44aa7028fcd7b09687acf18 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2014, 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
@@ -23,9 +23,13 @@ Abstract:
 #define GUID  _WINNT_DUP_GUID_____\r
 #define _LIST_ENTRY  _WINNT_DUP_LIST_ENTRY_FORWARD\r
 #define LIST_ENTRY   _WINNT_DUP_LIST_ENTRY\r
+\r
+#if (_MSC_VER < 1800)\r
 #define InterlockedIncrement _WINNT_DUP_InterlockedIncrement\r
 #define InterlockedDecrement _WINNT_DUP_InterlockedDecrement\r
 #define InterlockedCompareExchange64 _WINNT_DUP_InterlockedCompareExchange64\r
+#endif\r
+\r
 #undef UNALIGNED\r
 #undef CONST\r
 #undef VOID\r