xref: /aosp_15_r20/external/fmtlib/test/detect-stdfs.cc (revision 5c90c05cd622c0a81b57953a4d343e0e489f2e08)
1 // Formatting library for C++ - tests of formatters for standard library types
2 //
3 // Copyright (c) 2012 - present, Victor Zverovich
4 // All rights reserved.
5 //
6 // For the license information refer to format.h.
7 
8 #include <exception>  // _GLIBCXX_RELEASE & _LIBCPP_VERSION
9 
10 #if defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE == 8
11 #  error libfound "stdc++fs"
12 #elif !defined(__apple_build_version__) && defined(_LIBCPP_VERSION) && \
13     _LIBCPP_VERSION >= 7000 && _LIBCPP_VERSION < 9000
14 #  error libfound "c++fs"
15 #else
16 // none if std::filesystem does not require additional libraries
17 #  error libfound ""
18 #endif
19