Debian Codegraph @

src/mpt/check/libcxx.hpp

raw
1 /* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
2
3 #ifndef MPT_CHECK_LIBCXX_HPP
4 #define MPT_CHECK_LIBCXX_HPP
5
6 #include "mpt/base/detect_libcxx.hpp"
7 #include "mpt/base/detect_os.hpp"
8 #include "mpt/base/detect_quirks.hpp"
9
10 #ifndef MPT_CHECK_LIBCXX_IGNORE_WARNING_NO_THREADS
11 #if MPT_OS_WINDOWS && MPT_WIN_BEFORE(MPT_WIN_7) && MPT_LIBCXX_GNU_AT_LEAST(13) && !defined(_GLIBCXX_HAS_GTHREADS)
12 #error "GNU libstdc++ is compiled without gthreads support (likely due to using Win32 threading model as opposed to POSIX or mcfgthread threading model. This a severely crippled C++11 implementation and no is no longer supported for libstdc++ version 13 or later."
13 #endif
14 #endif
15
16 #endif // MPT_CHECK_LIBCXX_HPP