diff options
Diffstat (limited to 'libstdc++-v3/include/std/syncstream')
-rw-r--r-- | libstdc++-v3/include/std/syncstream | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libstdc++-v3/include/std/syncstream b/libstdc++-v3/include/std/syncstream index 3788b71..7262a96 100644 --- a/libstdc++-v3/include/std/syncstream +++ b/libstdc++-v3/include/std/syncstream @@ -29,17 +29,16 @@ #ifndef _GLIBCXX_SYNCSTREAM #define _GLIBCXX_SYNCSTREAM 1 -#if __cplusplus > 201703L - -#include <bits/c++config.h> -#if _GLIBCXX_USE_CXX11_ABI - -#define __cpp_lib_syncbuf 201803L - #pragma GCC system_header #include <bits/requires_hosted.h> // iostreams +#include <bits/c++config.h> + +#define __glibcxx_want_syncbuf +#include <bits/version.h> + +#ifdef __cpp_lib_syncbuf // C++ >= 20 && HOSTED && CXX11ABI #include <sstream> #include <bits/alloc_traits.h> @@ -314,6 +313,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION using wosyncstream = basic_osyncstream<wchar_t>; _GLIBCXX_END_NAMESPACE_VERSION } // namespace std -#endif // _GLIBCXX_USE_CXX11_ABI -#endif // C++2a +#endif // __cpp_lib_syncbuf + #endif /* _GLIBCXX_SYNCSTREAM */ |