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
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
23#if __cplusplus >= 201103L
24#  define @KWSYS_NAMESPACE@_NULLPTR nullptr
25#else
26#  define @KWSYS_NAMESPACE@_NULLPTR 0
27#endif
28
29#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
30#  if __cplusplus >= 201703L &&                                               \
31    @KWSYS_NAMESPACE@__has_cpp_attribute(fallthrough)
32#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[fallthrough]]
33#  elif __cplusplus >= 201103L &&                                             \
34    @KWSYS_NAMESPACE@__has_cpp_attribute(gnu::fallthrough)
35#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[gnu::fallthrough]]
36#  elif __cplusplus >= 201103L &&                                             \
37    @KWSYS_NAMESPACE@__has_cpp_attribute(clang::fallthrough)
38#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[clang::fallthrough]]
39#  endif
40#endif
41#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
42#  define @KWSYS_NAMESPACE@_FALLTHROUGH static_cast<void>(0)
43#endif
44
45#undef @KWSYS_NAMESPACE@__has_cpp_attribute
46
47/* If building a C++ file in kwsys itself, give the source file
48   access to the macros without a configured namespace.  */
49#if defined(KWSYS_NAMESPACE)
50#  if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
51#    define kwsys @KWSYS_NAMESPACE@
52#  endif
53#  define KWSYS_NAME_IS_KWSYS @KWSYS_NAMESPACE@_NAME_IS_KWSYS
54#  define KWSYS_STL_HAS_WSTRING @KWSYS_NAMESPACE@_STL_HAS_WSTRING
55#  define KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H                                   \
56    @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H
57#  define KWSYS_FALLTHROUGH @KWSYS_NAMESPACE@_FALLTHROUGH
58#  define KWSYS_NULLPTR @KWSYS_NAMESPACE@_NULLPTR
59#endif
60
61#endif
62