Configure.hxx.in 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
  3. #ifndef @KWSYS_NAMESPACE@_Configure_hxx
  4. #define @KWSYS_NAMESPACE@_Configure_hxx
  5. /* Include C configuration. */
  6. #include <@KWSYS_NAMESPACE@/Configure.h>
  7. /* Whether wstring is available. */
  8. #define @KWSYS_NAMESPACE@_STL_HAS_WSTRING @KWSYS_STL_HAS_WSTRING@
  9. /* Whether <ext/stdio_filebuf.h> is available. */
  10. #define @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H \
  11. @KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H@
  12. /* Whether the translation map is available or not. */
  13. #define @KWSYS_NAMESPACE@_SYSTEMTOOLS_USE_TRANSLATION_MAP \
  14. @KWSYS_SYSTEMTOOLS_USE_TRANSLATION_MAP@
  15. #if defined(__SUNPRO_CC) && __SUNPRO_CC > 0x5130 && defined(__has_attribute)
  16. # define @KWSYS_NAMESPACE@__has_cpp_attribute(x) __has_attribute(x)
  17. #elif defined(__has_cpp_attribute)
  18. # define @KWSYS_NAMESPACE@__has_cpp_attribute(x) __has_cpp_attribute(x)
  19. #else
  20. # define @KWSYS_NAMESPACE@__has_cpp_attribute(x) 0
  21. #endif
  22. #if __cplusplus >= 201103L
  23. # define @KWSYS_NAMESPACE@_NULLPTR nullptr
  24. #else
  25. # define @KWSYS_NAMESPACE@_NULLPTR 0
  26. #endif
  27. #ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
  28. # if __cplusplus >= 201703L && \
  29. @KWSYS_NAMESPACE@__has_cpp_attribute(fallthrough)
  30. # define @KWSYS_NAMESPACE@_FALLTHROUGH [[fallthrough]]
  31. # elif __cplusplus >= 201103L && \
  32. @KWSYS_NAMESPACE@__has_cpp_attribute(gnu::fallthrough)
  33. # define @KWSYS_NAMESPACE@_FALLTHROUGH [[gnu::fallthrough]]
  34. # elif __cplusplus >= 201103L && \
  35. @KWSYS_NAMESPACE@__has_cpp_attribute(clang::fallthrough)
  36. # define @KWSYS_NAMESPACE@_FALLTHROUGH [[clang::fallthrough]]
  37. # endif
  38. #endif
  39. #ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
  40. # define @KWSYS_NAMESPACE@_FALLTHROUGH static_cast<void>(0)
  41. #endif
  42. #undef @KWSYS_NAMESPACE@__has_cpp_attribute
  43. /* If building a C++ file in kwsys itself, give the source file
  44. access to the macros without a configured namespace. */
  45. #if defined(KWSYS_NAMESPACE)
  46. # if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
  47. # define kwsys @KWSYS_NAMESPACE@
  48. # endif
  49. # define KWSYS_NAME_IS_KWSYS @KWSYS_NAMESPACE@_NAME_IS_KWSYS
  50. # define KWSYS_STL_HAS_WSTRING @KWSYS_NAMESPACE@_STL_HAS_WSTRING
  51. # define KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H \
  52. @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H
  53. # define KWSYS_FALLTHROUGH @KWSYS_NAMESPACE@_FALLTHROUGH
  54. # define KWSYS_SYSTEMTOOLS_USE_TRANSLATION_MAP \
  55. @KWSYS_NAMESPACE@_SYSTEMTOOLS_USE_TRANSLATION_MAP
  56. #endif
  57. #endif