projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d24671f
)
Fix build with VS2015
author
Ismail Donmez
<ismail@i10z.com>
Sat, 30 Jan 2016 07:14:31 +0000
(07:14 +0000)
committer
Ismail Donmez
<ismail@i10z.com>
Sat, 30 Jan 2016 07:14:31 +0000
(07:14 +0000)
llvm-svn: 259301
compiler-rt/lib/profile/InstrProfilingPort.h
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/profile/InstrProfilingPort.h
b/compiler-rt/lib/profile/InstrProfilingPort.h
index
2efe809
..
a945f97
100644
(file)
--- a/
compiler-rt/lib/profile/InstrProfilingPort.h
+++ b/
compiler-rt/lib/profile/InstrProfilingPort.h
@@
-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, \