diff options
author | Peter Foley <pefoley2@verizon.net> | 2013-01-23 16:29:08 -0500 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-01-28 22:54:03 +0000 |
commit | c322d509231f9e1220fb86be68f13c5f4b135ccb (patch) | |
tree | c7691739fee5857e869d591c50200ea37f64cab4 /mysqlcppconn/config.h | |
parent | ef7b1133311ad6ff672a423d89c876d67f5f8f4a (diff) |
convert mysqlcppconn to gbuild and add to tail_build
Change-Id: I33a9ff3393b90c5b9f7d7fa85e8761c02160664f
Reviewed-on: https://gerrit.libreoffice.org/1900
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'mysqlcppconn/config.h')
-rw-r--r-- | mysqlcppconn/config.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mysqlcppconn/config.h b/mysqlcppconn/config.h new file mode 100644 index 000000000000..7c2d2ebd6c8c --- /dev/null +++ b/mysqlcppconn/config.h @@ -0,0 +1,34 @@ +#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(SOLARIS) || defined(LINUX) + #define HAVE_STDINT_H + #define HAVE_INTTYPES_H +#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) && !defined(_MSC_VER) + +// 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) |