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 6/* Include C configuration. */ 7#include <@KWSYS_NAMESPACE@/Configure.h> 8 9/* Whether wstring is available. */ 10#define @KWSYS_NAMESPACE@_STL_HAS_WSTRING @KWSYS_STL_HAS_WSTRING@ 11/* Whether <ext/stdio_filebuf.h> is available. */ 12#define @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H \ 13 @KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H@ 14/* Whether the translation map is available or not. */ 15#define @KWSYS_NAMESPACE@_SYSTEMTOOLS_USE_TRANSLATION_MAP \ 16 @KWSYS_SYSTEMTOOLS_USE_TRANSLATION_MAP@ 17 18#if defined(__SUNPRO_CC) && __SUNPRO_CC > 0x5130 && defined(__has_attribute) 19# define @KWSYS_NAMESPACE@__has_cpp_attribute(x) __has_attribute(x) 20#elif defined(__has_cpp_attribute) 21# define @KWSYS_NAMESPACE@__has_cpp_attribute(x) __has_cpp_attribute(x) 22#else 23# define @KWSYS_NAMESPACE@__has_cpp_attribute(x) 0 24#endif 25 26#if __cplusplus >= 201103L 27# define @KWSYS_NAMESPACE@_NULLPTR nullptr 28#else 29# define @KWSYS_NAMESPACE@_NULLPTR 0 30#endif 31 32#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH 33# if __cplusplus >= 201703L && \ 34 @KWSYS_NAMESPACE@__has_cpp_attribute(fallthrough) 35# define @KWSYS_NAMESPACE@_FALLTHROUGH [[fallthrough]] 36# elif __cplusplus >= 201103L && \ 37 @KWSYS_NAMESPACE@__has_cpp_attribute(gnu::fallthrough) 38# define @KWSYS_NAMESPACE@_FALLTHROUGH [[gnu::fallthrough]] 39# elif __cplusplus >= 201103L && \ 40 @KWSYS_NAMESPACE@__has_cpp_attribute(clang::fallthrough) 41# define @KWSYS_NAMESPACE@_FALLTHROUGH [[clang::fallthrough]] 42# endif 43#endif 44#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH 45# define @KWSYS_NAMESPACE@_FALLTHROUGH static_cast<void>(0) 46#endif 47 48#undef @KWSYS_NAMESPACE@__has_cpp_attribute 49 50/* If building a C++ file in kwsys itself, give the source file 51 access to the macros without a configured namespace. */ 52#if defined(KWSYS_NAMESPACE) 53# if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS 54# define kwsys @KWSYS_NAMESPACE@ 55# endif 56# define KWSYS_NAME_IS_KWSYS @KWSYS_NAMESPACE@_NAME_IS_KWSYS 57# define KWSYS_STL_HAS_WSTRING @KWSYS_NAMESPACE@_STL_HAS_WSTRING 58# define KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H \ 59 @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H 60# define KWSYS_FALLTHROUGH @KWSYS_NAMESPACE@_FALLTHROUGH 61# define KWSYS_SYSTEMTOOLS_USE_TRANSLATION_MAP \ 62 @KWSYS_NAMESPACE@_SYSTEMTOOLS_USE_TRANSLATION_MAP 63#endif 64 65#endif 66