detect-stdfs.cc 607 B

123456789101112131415161718
  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. #include <exception> // _GLIBCXX_RELEASE & _LIBCPP_VERSION
  8. #if defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE == 8
  9. # error libfound "stdc++fs"
  10. #elif !defined(__apple_build_version__) && defined(_LIBCPP_VERSION) && \
  11. _LIBCPP_VERSION >= 7000 && _LIBCPP_VERSION < 9000
  12. # error libfound "c++fs"
  13. #else
  14. // none if std::filesystem does not require additional libraries
  15. # error libfound ""
  16. #endif