config.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License, version 2.0, as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is also distributed with certain software (including
  9. * but not limited to OpenSSL) that is licensed under separate terms,
  10. * as designated in a particular file or component or in included license
  11. * documentation. The authors of MySQL hereby grant you an
  12. * additional permission to link the program and your derivative works
  13. * with the separately licensed software that they have included with
  14. * MySQL.
  15. *
  16. * Without limiting anything contained in the foregoing, this file,
  17. * which is part of MySQL Connector/C++, is also subject to the
  18. * Universal FOSS Exception, version 1.0, a copy of which can be found at
  19. * http://oss.oracle.com/licenses/universal-foss-exception.
  20. *
  21. * This program is distributed in the hope that it will be useful, but
  22. * WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24. * See the GNU General Public License, version 2.0, for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software Foundation, Inc.,
  28. * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  29. */
  30. // libmysql defines HAVE_STRTOUL (on win), so we have to follow different pattern in definitions names
  31. // to avoid annoying warnings.
  32. #define HAVE_FUNCTION_STRTOLD 1
  33. #define HAVE_FUNCTION_STRTOLL 1
  34. #define HAVE_FUNCTION_STRTOL 1
  35. #define HAVE_FUNCTION_STRTOULL 1
  36. #define HAVE_FUNCTION_STRTOUL 1
  37. #define HAVE_FUNCTION_STRTOIMAX 1
  38. #define HAVE_FUNCTION_STRTOUMAX 1
  39. #define HAVE_STDINT_H 1
  40. #define HAVE_INTTYPES_H 1
  41. #define HAVE_INT8_T 1
  42. #define HAVE_UINT8_T 1
  43. #define HAVE_INT16_T 1
  44. #define HAVE_UINT16_T 1
  45. #define HAVE_INT32_T 1
  46. #define HAVE_UINT32_T 1
  47. #define HAVE_INT32_T 1
  48. #define HAVE_UINT32_T 1
  49. #define HAVE_INT64_T 1
  50. #define HAVE_UINT64_T 1
  51. #define HAVE_MS_INT8 1
  52. #define HAVE_MS_UINT8 1
  53. #define HAVE_MS_INT16 1
  54. #define HAVE_MS_UINT16 1
  55. #define HAVE_MS_INT32 1
  56. #define HAVE_MS_UINT32 1
  57. #define HAVE_MS_INT64 1
  58. #define HAVE_MS_UINT64 1
  59. #ifdef HAVE_STDINT_H
  60. #include <stdint.h>
  61. #endif
  62. #if defined(HAVE_INTTYPES_H) && !defined(_WIN32)
  63. #include <inttypes.h>
  64. #endif
  65. #if defined(_WIN32)
  66. #ifndef CPPCONN_DONT_TYPEDEF_MS_TYPES_TO_C99_TYPES
  67. #if _MSC_VER >= 1600
  68. #include <stdint.h>
  69. #else
  70. #if !defined(HAVE_INT8_T) && defined(HAVE_MS_INT8)
  71. typedef __int8 int8_t;
  72. #endif
  73. #ifdef HAVE_MS_UINT8
  74. typedef unsigned __int8 uint8_t;
  75. #endif
  76. #ifdef HAVE_MS_INT16
  77. typedef __int16 int16_t;
  78. #endif
  79. #ifdef HAVE_MS_UINT16
  80. typedef unsigned __int16 uint16_t;
  81. #endif
  82. #ifdef HAVE_MS_INT32
  83. typedef __int32 int32_t;
  84. #endif
  85. #ifdef HAVE_MS_UINT32
  86. typedef unsigned __int32 uint32_t;
  87. #endif
  88. #ifdef HAVE_MS_INT64
  89. typedef __int64 int64_t;
  90. #endif
  91. #ifdef HAVE_MS_UINT64
  92. typedef unsigned __int64 uint64_t;
  93. #endif
  94. #endif // _MSC_VER >= 1600
  95. #endif // CPPCONN_DONT_TYPEDEF_MS_TYPES_TO_C99_TYPES
  96. #endif // _WIN32