config.h.in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #ifndef _FASTRTPS_CONFIG_H_
  15. #define _FASTRTPS_CONFIG_H_
  16. #define FASTRTPS_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
  17. #define FASTRTPS_VERSION_MINOR @PROJECT_VERSION_MINOR@
  18. #define FASTRTPS_VERSION_MICRO @PROJECT_VERSION_PATCH@
  19. #define FASTRTPS_VERSION_STR "@PROJECT_VERSION@"
  20. #define GEN_API_VER 1
  21. // C++14 support defines
  22. #ifndef HAVE_CXX14
  23. #define HAVE_CXX14 @HAVE_CXX14@
  24. #endif
  25. // C++1Y support defines
  26. #ifndef HAVE_CXX1Y
  27. #define HAVE_CXX1Y @HAVE_CXX1Y@
  28. #endif
  29. // C++11 support defines
  30. #ifndef HAVE_CXX11
  31. #define HAVE_CXX11 @HAVE_CXX11@
  32. #endif
  33. // C++0x support defines
  34. #ifndef HAVE_CXX0X
  35. #define HAVE_CXX0X @HAVE_CXX0X@
  36. #endif
  37. // C++ constexpr support
  38. #ifndef HAVE_CXX_CONSTEXPR
  39. #define HAVE_CXX_CONSTEXPR @HAVE_CXX_CONSTEXPR@
  40. #endif
  41. #if HAVE_CXX_CONSTEXPR
  42. #define CONSTEXPR constexpr
  43. #else
  44. #define CONSTEXPR const
  45. #endif
  46. // Endianness defines
  47. #ifndef __BIG_ENDIAN__
  48. #define __BIG_ENDIAN__ @__BIG_ENDIAN__@
  49. #endif
  50. // Security
  51. #ifndef HAVE_SECURITY
  52. #define HAVE_SECURITY @HAVE_SECURITY@
  53. #endif
  54. //Sqlite3 support
  55. #ifndef HAVE_SQLITE3
  56. #define HAVE_SQLITE3 @HAVE_SQLITE3@
  57. #endif
  58. // TLS support
  59. #ifndef TLS_FOUND
  60. #define TLS_FOUND @TLS_FOUND@
  61. #endif
  62. // Strict real-time
  63. #ifndef HAVE_STRICT_REALTIME
  64. #define HAVE_STRICT_REALTIME @HAVE_STRICT_REALTIME@
  65. #endif
  66. // Deprecated macro
  67. #if __cplusplus >= 201402L
  68. #define FASTRTPS_DEPRECATED(msg) [[ deprecated(msg) ]]
  69. #elif defined(__GNUC__) || defined(__clang__)
  70. #define FASTRTPS_DEPRECATED(msg) __attribute__ ((deprecated(msg)))
  71. #elif defined(_MSC_VER)
  72. #define FASTRTPS_DEPRECATED(msg) __declspec(deprecated(msg))
  73. #else
  74. #define FASTRTPS_DEPRECATED(msg)
  75. #endif
  76. #endif // _FASTRTPS_CONFIG_H_