summaryrefslogtreecommitdiff
path: root/external/mysql-connector-cpp/config.h
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-09-14 16:12:55 +0200
committerMichael Stahl <mstahl@redhat.com>2017-09-15 11:06:18 +0200
commitb29402009831f8a96fd77fc1042c3004c224a350 (patch)
treede1493051d57bcfdb60e5e9e6995a0691b936086 /external/mysql-connector-cpp/config.h
parent15b973ed64cb0c655b387c5022fc2ff0894520dd (diff)
consistent naming of externals: mysqlcppconn -> mysql-connector-cpp
Change-Id: Ibfb3aa69895eef6023c38e2ff3b7ae98a05f5820 Reviewed-on: https://gerrit.libreoffice.org/42300 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'external/mysql-connector-cpp/config.h')
-rw-r--r--external/mysql-connector-cpp/config.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/external/mysql-connector-cpp/config.h b/external/mysql-connector-cpp/config.h
new file mode 100644
index 000000000000..eaa929437182
--- /dev/null
+++ b/external/mysql-connector-cpp/config.h
@@ -0,0 +1,39 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+#include <sal/types.h>
+
+#define HAVE_FUNCTION_STRTOL 1
+#define HAVE_FUNCTION_STRTOUL 1
+#define HAVE_FUNCTION_STRTOL 1
+#define HAVE_FUNCTION_STRTOULL 1
+
+#if defined(MACOSX) || defined(__sun) || defined(LINUX) || defined (_MSC_VER)
+ #define HAVE_STDINT_H
+#ifndef _MSC_VER
+ #define HAVE_INTTYPES_H
+#endif
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
+
+// if we do not have the standard C99 integer types, then define them based on the respective SAL types
+#if !defined(_SYS_TYPES_H)
+typedef sal_Int8 int8_t;
+typedef sal_Int16 int16_t;
+typedef sal_Int32 int32_t;
+#endif // !defined(_SYS_TYPES_H)
+typedef sal_uInt8 uint8_t;
+typedef sal_uInt16 uint16_t;
+typedef sal_uInt32 uint32_t;
+typedef sal_Int64 int64_t;
+typedef sal_uInt64 uint64_t;
+#endif // !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */