diff options
author | Yingke Liu <yingke.d.liu@intel.com> | 2014-08-20 02:26:07 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-20 02:26:07 +0000 |
commit | 4805b4b5ddf133ad75db9312cc6d63cd77b33215 (patch) | |
tree | e4a43d0cf7a3d96c6bfdaa69f3fc42138fac32bb /BaseTools | |
parent | 64fabae54bf39a3b164e911b9d3ff6985dc66036 (diff) | |
download | edk2-4805b4b5ddf133ad75db9312cc6d63cd77b33215.tar.gz edk2-4805b4b5ddf133ad75db9312cc6d63cd77b33215.tar.bz2 edk2-4805b4b5ddf133ad75db9312cc6d63cd77b33215.zip |
Fix an issue of building BaseTools from sources using VS2013.
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
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/C/Common/WinNtInclude.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/BaseTools/Source/C/Common/WinNtInclude.h b/BaseTools/Source/C/Common/WinNtInclude.h index bd33e3dd2a..1ad8ba261a 100644 --- a/BaseTools/Source/C/Common/WinNtInclude.h +++ b/BaseTools/Source/C/Common/WinNtInclude.h @@ -1,6 +1,6 @@ /** @file
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -23,9 +23,13 @@ Abstract: #define GUID _WINNT_DUP_GUID_____
#define _LIST_ENTRY _WINNT_DUP_LIST_ENTRY_FORWARD
#define LIST_ENTRY _WINNT_DUP_LIST_ENTRY
+
+#if (_MSC_VER < 1800)
#define InterlockedIncrement _WINNT_DUP_InterlockedIncrement
#define InterlockedDecrement _WINNT_DUP_InterlockedDecrement
#define InterlockedCompareExchange64 _WINNT_DUP_InterlockedCompareExchange64
+#endif
+
#undef UNALIGNED
#undef CONST
#undef VOID
|