Fix build with VS2015
authorIsmail Donmez <ismail@i10z.com>
Sat, 30 Jan 2016 07:14:31 +0000 (07:14 +0000)
committerIsmail Donmez <ismail@i10z.com>
Sat, 30 Jan 2016 07:14:31 +0000 (07:14 +0000)
llvm-svn: 259301

compiler-rt/lib/profile/InstrProfilingPort.h

index 2efe809..a945f97 100644 (file)
@@ -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,      \