diff --git a/include/fmt/std.h b/include/fmt/std.h index fff6da9d..9b3709f5 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -225,7 +225,7 @@ template struct is_bit_reference_like { // Workaround for libc++ incompatibility with C++ standard. // According to the Standard, `bitset::operator[] const` returns bool. -#ifdef _LIBCPP_VERSION +#if defined(_LIBCPP_VERSION) && !defined(FMT_IMPORT_STD) template struct is_bit_reference_like> { static constexpr bool value = true; diff --git a/src/fmt.cc b/src/fmt.cc index 671fd695..0713da75 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -50,6 +50,8 @@ module; # include # include # include +# include +# include # include #endif #include