[compiler-rt] r259301 - Fix build with VS2015

Ismail Donmez via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 23:14:31 PST 2016


Author: ismail
Date: Sat Jan 30 01:14:31 2016
New Revision: 259301

URL: http://llvm.org/viewvc/llvm-project?rev=259301&view=rev
Log:
Fix build with VS2015

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingPort.h

Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=259301&r1=259300&r2=259301&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Sat Jan 30 01:14:31 2016
@@ -33,7 +33,9 @@
 #if COMPILER_RT_HAS_ATOMICS == 1
 #ifdef _MSC_VER
 #include <windows.h>
+#if _MSC_VER < 1900
 #define snprintf _snprintf
+#endif
 #if defined(_WIN64)
 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV)                              \
   (InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV,      \




More information about the llvm-commits mailing list