File: Configure.hxx.in

package info (click to toggle)
cmake 4.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152,456 kB
  • sloc: ansic: 403,896; cpp: 303,920; sh: 4,105; python: 3,583; yacc: 3,106; lex: 1,279; f90: 538; asm: 471; lisp: 375; cs: 270; java: 266; fortran: 239; objc: 215; perl: 213; xml: 198; makefile: 111; javascript: 83; pascal: 63; tcl: 55; php: 25; ruby: 22
file content (57 lines) | stat: -rw-r--r-- 2,222 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing#kwsys for details.  */
#ifndef @KWSYS_NAMESPACE@_Configure_hxx
#define @KWSYS_NAMESPACE@_Configure_hxx

/* Include C configuration.  */
#include <@KWSYS_NAMESPACE@/Configure.h>

/* Whether <ext/stdio_filebuf.h> is available. */
#define @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H                         \
  @KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H@

#if defined(__SUNPRO_CC) && __SUNPRO_CC > 0x5130 && defined(__has_attribute)
#  define @KWSYS_NAMESPACE@_has_cpp_attribute(x) __has_attribute(x)
#elif defined(__has_cpp_attribute)
#  define @KWSYS_NAMESPACE@_has_cpp_attribute(x) __has_cpp_attribute(x)
#else
#  define @KWSYS_NAMESPACE@_has_cpp_attribute(x) 0
#endif

#if __cplusplus >= 201103L
#  define @KWSYS_NAMESPACE@_NULLPTR nullptr
#else
#  define @KWSYS_NAMESPACE@_NULLPTR 0
#endif

#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
#  if __cplusplus >= 201703L &&                                               \
    @KWSYS_NAMESPACE@_has_cpp_attribute(fallthrough)
#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[fallthrough]]
#  elif __cplusplus >= 201103L &&                                             \
    @KWSYS_NAMESPACE@_has_cpp_attribute(gnu::fallthrough)
#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[gnu::fallthrough]]
#  elif __cplusplus >= 201103L &&                                             \
    @KWSYS_NAMESPACE@_has_cpp_attribute(clang::fallthrough)
#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[clang::fallthrough]]
#  endif
#endif
#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
#  define @KWSYS_NAMESPACE@_FALLTHROUGH static_cast<void>(0)
#endif

#undef @KWSYS_NAMESPACE@_has_cpp_attribute

/* If building a C++ file in kwsys itself, give the source file
   access to the macros without a configured namespace.  */
#if defined(KWSYS_NAMESPACE)
#  if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
#    define kwsys @KWSYS_NAMESPACE@
#  endif
#  define KWSYS_NAME_IS_KWSYS @KWSYS_NAMESPACE@_NAME_IS_KWSYS
#  define KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H                                   \
    @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H
#  define KWSYS_FALLTHROUGH @KWSYS_NAMESPACE@_FALLTHROUGH
#endif

#endif