File: detect-stdfs.cc

package info (click to toggle)
fmtlib 10.1.1%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,860 kB
  • sloc: cpp: 19,684; ansic: 2,022; python: 139; sh: 53; makefile: 25
file content (18 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Formatting library for C++ - tests of formatters for standard library types
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.

#include <exception>  // _GLIBCXX_RELEASE & _LIBCPP_VERSION

#if defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE == 8
#  error libfound "stdc++fs"
#elif !defined(__apple_build_version__) && defined(_LIBCPP_VERSION) && \
    _LIBCPP_VERSION >= 7000 && _LIBCPP_VERSION < 9000
#  error libfound "c++fs"
#else
// none if std::filesystem does not require additional libraries
#  error libfound ""
#endif