We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628bcb0 commit 5461f89Copy full SHA for 5461f89
libcxx/src/filesystem/operations.cpp
@@ -40,9 +40,15 @@
40
#include <time.h>
41
42
// since Linux 4.5 and FreeBSD 13, but the Linux libc wrapper is only provided by glibc >= 2.27 and musl
43
-#if (defined(__linux__) && \
44
- ((defined(_LIBCPP_GLIBC_PREREQ) && _LIBCPP_GLIBC_PREREQ(2, 27)) || _LIBCPP_HAS_MUSL_LIBC)) || \
45
- defined(__FreeBSD__)
+#if defined(__linux__)
+# if defined(_LIBCPP_GLIBC_PREREQ)
+# if _LIBCPP_GLIBC_PREREQ(2, 27)
46
+# define _LIBCPP_FILESYSTEM_USE_COPY_FILE_RANGE
47
+# endif
48
+# elif _LIBCPP_HAS_MUSL_LIBC
49
50
51
+#elif defined(__FreeBSD__)
52
# define _LIBCPP_FILESYSTEM_USE_COPY_FILE_RANGE
53
#endif
54
#if __has_include(<sys/sendfile.h>)
0 commit comments