summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-06-02 13:26:30 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-02 20:37:57 +0200
commit23583553d1a9951eaa33dfb598606cdf55d3f01a (patch)
tree4f4f66107abcc2455a4d1b7f510cdbb614b4a3a1
parent58873656afdafd8a6c5b038e1a15e5c022f3558b (diff)
mysqlcppconn: MSVC 2010 finally has grown a stdint.h
Change-Id: I5b8d948aad94ba492075245c18c8ed781baa469e
-rw-r--r--mysqlcppconn/config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysqlcppconn/config.h b/mysqlcppconn/config.h
index 19cf389d20a3..e30a0cbc9248 100644
--- a/mysqlcppconn/config.h
+++ b/mysqlcppconn/config.h
@@ -5,10 +5,12 @@
#define HAVE_FUNCTION_STRTOL 1
#define HAVE_FUNCTION_STRTOULL 1
-#if defined(MACOSX) || defined(SOLARIS) || defined(LINUX)
+#if defined(MACOSX) || defined(SOLARIS) || defined(LINUX) || (defined _MSC_VER && _MSC_VER >= 1600)
#define HAVE_STDINT_H
+#ifndef _MSC_VER
#define HAVE_INTTYPES_H
#endif
+#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>