apu.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /* Licensed to the Apache Software Foundation (ASF) under one or more
  2. * contributor license agreements. See the NOTICE file distributed with
  3. * this work for additional information regarding copyright ownership.
  4. * The ASF licenses this file to You under the Apache License, Version 2.0
  5. * (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*
  17. * apu.h is generated from apu.h.in by configure -- do not edit apu.h
  18. */
  19. /* @file apu.h
  20. * @brief APR-Utility main file
  21. */
  22. /**
  23. * @defgroup APR_Util APR Utility Functions
  24. * @{
  25. */
  26. #ifndef APU_H
  27. #define APU_H
  28. /**
  29. * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
  30. * so that all public symbols are exported.
  31. *
  32. * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
  33. * to provide static linkage when the dynamic library may be unavailable.
  34. *
  35. * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
  36. * including the APR-UTIL public headers, to import and link the symbols from
  37. * the dynamic APR-UTIL library and assure appropriate indirection and calling
  38. * conventions at compile time.
  39. */
  40. #if defined(DOXYGEN) || !defined(WIN32)
  41. /**
  42. * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
  43. * use the most appropriate calling convention. Public APR functions with
  44. * variable arguments must use APU_DECLARE_NONSTD().
  45. *
  46. * @fn APU_DECLARE(rettype) apr_func(args);
  47. */
  48. #define APU_DECLARE(type) type
  49. /**
  50. * The public APR-UTIL functions using variable arguments are declared with
  51. * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
  52. *
  53. * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
  54. */
  55. #define APU_DECLARE_NONSTD(type) type
  56. /**
  57. * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
  58. * This assures the appropriate indirection is invoked at compile time.
  59. *
  60. * @fn APU_DECLARE_DATA type apr_variable;
  61. * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for
  62. * declarations within headers to properly import the variable.
  63. */
  64. #define APU_DECLARE_DATA
  65. #elif defined(APU_DECLARE_STATIC)
  66. #define APU_DECLARE(type) type __stdcall
  67. #define APU_DECLARE_NONSTD(type) type __cdecl
  68. #define APU_DECLARE_DATA
  69. #elif defined(APU_DECLARE_EXPORT)
  70. #define APU_DECLARE(type) __declspec(dllexport) type __stdcall
  71. #define APU_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
  72. #define APU_DECLARE_DATA __declspec(dllexport)
  73. #else
  74. #define APU_DECLARE(type) __declspec(dllimport) type __stdcall
  75. #define APU_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
  76. #define APU_DECLARE_DATA __declspec(dllimport)
  77. #endif
  78. #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
  79. /**
  80. * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
  81. *
  82. * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols
  83. * declared with APU_MODULE_DECLARE_DATA are always exported.
  84. * @code
  85. * module APU_MODULE_DECLARE_DATA mod_tag
  86. * @endcode
  87. */
  88. #define APU_MODULE_DECLARE_DATA
  89. #else
  90. #define APU_MODULE_DECLARE_DATA __declspec(dllexport)
  91. #endif
  92. /*
  93. * we always have SDBM (it's in our codebase)
  94. */
  95. #define APU_HAVE_SDBM 1
  96. #define APU_HAVE_GDBM 0
  97. #define APU_HAVE_NDBM 0
  98. #define APU_HAVE_DB 0
  99. #if APU_HAVE_DB
  100. #define APU_HAVE_DB_VERSION 0
  101. #endif
  102. #define APU_HAVE_PGSQL 1
  103. #define APU_HAVE_MYSQL 0
  104. #define APU_HAVE_SQLITE3 1
  105. #define APU_HAVE_SQLITE2 0
  106. #define APU_HAVE_ORACLE 0
  107. #define APU_HAVE_ODBC 1
  108. #define APU_HAVE_CRYPTO 0
  109. #define APU_HAVE_OPENSSL 0
  110. #define APU_HAVE_NSS 0
  111. #define APU_HAVE_COMMONCRYPTO 0
  112. #define APU_HAVE_APR_ICONV 0
  113. #define APU_HAVE_ICONV 1
  114. #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
  115. #endif /* APU_H */
  116. /** @} */