summaryrefslogtreecommitdiff
path: root/mysqlcppconn/config.h
blob: 7736c611f7bec50c23bdca6b631b270af5ef1409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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(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>
#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: */