summaryrefslogtreecommitdiff
path: root/config_host/config_global.h.in
blob: 5b04594c12f569a07f1959a9743888d65c87d337 (plain)
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
/*
Global configuration file.

Only for settings that apply to every source file and are unlikely to change often,
such as whether a certain C++11 feature is available.

Do NOT use for settings local to some code or for settings that can change often.
Any change in this header will cause a rebuild of almost everything.

*/

#ifndef CONFIG_GLOBAL_H
#define CONFIG_GLOBAL_H

#define HAVE_GCC_BUILTIN_ATOMIC 0
#define HAVE_GCC_BUILTIN_FFS 0
/* _Pragma */
#define HAVE_GCC_PRAGMA_OPERATOR 0
#define HAVE_GCC_DEPRECATED_MESSAGE 0
#define HAVE_SYSLOG_H 0
/* Compiler supports __attribute__((warn_unused)). */
#define HAVE_GCC_ATTRIBUTE_WARN_UNUSED 0

/* Guaranteed copy elision (C++17), __cpp_guaranteed_copy_elision (C++2a): */
#define HAVE_CPP_GUARANTEED_COPY_ELISION 0

// Compiler supports all of C++2a <https://wg21.link/P0202R3> "Add Constexpr Modifiers to Functions
// in <algorithm> and <utility> Headers", <https://wg21.link/P1004R2> "Making std::vector
// constexpr", and <https://wg21.link/P1143R2> "Adding the constinit keyword":
#define HAVE_CPP_CONSTINIT_SORTED_VECTOR 0

// Useable C++2a <span>:
#define HAVE_CPP_SPAN 0

/* GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150> "move ctor wrongly chosen in return
   stmt (derived vs. base)": */
#define HAVE_GCC_BUG_87150 0

#endif