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 2eda43eCopy full SHA for 2eda43e
include/fmt/format-inl.h
@@ -1489,12 +1489,16 @@ 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
template <typename F>
1500
struct has_flockfile<F, void_t<decltype(flockfile(&std::declval<F&>()))>>
- : std::true_type {};
1501
+ : bool_constant<FMT_USE_FLOCKFILE != 0> {};
1502
1503
// A FILE wrapper. F is FILE defined as a template parameter to make system API
1504
// detection work.
0 commit comments