diff --git a/src/core/include/mp-units/bits/external/hacks.h b/src/core/include/mp-units/bits/external/hacks.h index 55ad1d67..7e3c13c6 100644 --- a/src/core/include/mp-units/bits/external/hacks.h +++ b/src/core/include/mp-units/bits/external/hacks.h @@ -135,7 +135,7 @@ MP_UNITS_DIAGNOSTIC_POP #else -#ifndef __cpp_lib_format +#if !defined __cpp_lib_format && !defined MP_UNITS_COMP_CLANG #error "std::formatting facility not supported" #endif