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 eb99f6e commit 6eec500Copy full SHA for 6eec500
1 file changed
include/fmt/format-inl.h
@@ -1489,12 +1489,18 @@ template <typename F> auto getc_unlocked(F* f) -> decltype(_fgetc_nolock(f)) {
1489
}
1490
#endif
1491
1492
+#ifndef FMT_USE_FLOCKFILE
1493
+# define FMT_USE_FLOCKFILE 1
1494
+#endif
1495
+
1496
template <typename F = FILE, typename Enable = void>
1497
struct has_flockfile : std::false_type {};
1498
1499
+#if !FMT_USE_FLOCKFILE
1500
template <typename F>
1501
struct has_flockfile<F, void_t<decltype(flockfile(&std::declval<F&>()))>>
1502
: std::true_type {};
1503
1504
1505
// A FILE wrapper. F is FILE defined as a template parameter to make system API
1506
// detection work.
0 commit comments