summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Mellbin <fredrik.mellbin@gmail.com>2015-09-27 01:11:14 +0200
committerAliaksey Kandratsenka <alk@tut.by>2015-10-03 14:54:40 -0700
commit73673229955cf35c5b3046ee3100d94e82d33bc2 (patch)
treeb259572de9a3f3214261366d5662d3dcdfb3792c
parentae0a444db06b2327441e6160eafa33d8b7b95629 (diff)
downloadgperftools-73673229955cf35c5b3046ee3100d94e82d33bc2.tar.gz
Make default config.h work with VS2015
-rw-r--r--src/windows/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows/config.h b/src/windows/config.h
index 9976457..c1ab03e 100644
--- a/src/windows/config.h
+++ b/src/windows/config.h
@@ -24,7 +24,11 @@
#undef WIN32_OVERRIDE_ALLOCATORS
/* Define to 1 if your libc has a snprintf implementation */
+#if defined(_MSC_VER) && _MSC_VER >= 1900
+#define HAVE_SNPRINTF 1
+#else
#undef HAVE_SNPRINTF
+#endif
/* Define to 1 if compiler supports __builtin_stack_pointer */
#undef HAVE_BUILTIN_STACK_POINTER
@@ -129,7 +133,11 @@
#undef HAVE_SCHED_H
/* Define to 1 if you have the <stdint.h> header file. */
+#if defined(_MSC_VER) && _MSC_VER >= 1900
+#define HAVE_STDINT_H 1
+#else
#undef HAVE_STDINT_H
+#endif
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1