gtk3: silence 'invalid cast from 'GtkWindow' to 'GtkMenuShell' warning
[LibreOffice.git] / config_host / config_global.h.in
blob0df9ac8a47f1746f3d49e21b2bb5ad6ef386924f
1 /*
2 Global configuration file.
4 Only for settings that apply to every source file and are unlikely to change often,
5 such as whether a certain C++11 feature is available.
7 Do NOT use for settings local to some code or for settings that can change often.
8 Any change in this header will cause a rebuild of almost everything.
12 #ifndef CONFIG_GLOBAL_H
13 #define CONFIG_GLOBAL_H
15 #define HAVE_GCC_BUILTIN_ATOMIC 0
16 #define HAVE_SYSLOG_H 0
18 // Compiler supports C++20 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1073r3.html>
19 // "Immediate functions":
20 #define HAVE_CPP_CONSTEVAL 0
22 // Compiler supports all of C++2a <https://wg21.link/P0202R3> "Add Constexpr Modifiers to Functions
23 // in <algorithm> and <utility> Headers", <https://wg21.link/P1004R2> "Making std::vector
24 // constexpr", and <https://wg21.link/P1143R2> "Adding the constinit keyword":
25 #define HAVE_CPP_CONSTINIT_SORTED_VECTOR 0
27 // Useable C++2a <span>:
28 #define HAVE_CPP_SPAN 0
30 /* "CWG motion 23: P1825R0 'Merged wording for P0527R1 and P1155R3' (DR)" in
31 <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4829.html> "N4829 Editors' Report --
32 Programming Languages -- C++" marks
33 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1155r3.html> "More implicit moves" as a
34 DR. Some versions of GCC already implemented it prior to the fix for
35 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150> "move ctor wrongly chosen in return stmt
36 (derived vs. base)"; MSVC++ 14.24 started to implement it, see <https://
37 developercommunity.visualstudio.com/content/problem/852827/
38 msvc-1424-started-to-chose-move-ctor-in-return-der.html> "MSVC++ 14.24 started to chose move ctor
39 in return derived vs. base". At least Clang 9, which does not implement it, emits
40 -Werror,-Wreturn-std-move when it therefore considers a std::move to be missing. On the other
41 hand, at least some versions of GCC would emit -Werror=redundant-move in places where such a
42 std::move would be added unconditionally, see c00948d9bd35dfb15a331c2163f32e9ee24644fd "Silence
43 bogus -Werror=redundant-move (GCC 9)". */
44 #define HAVE_P1155R3 0
46 #endif