From 24e5ca8ad92e19934d0a2699a62f7c547fd88818 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 23 Jan 2024 21:34:00 +0100 Subject: [PATCH] build: `std::format` enabled on clang with a hack --- src/core/include/mp-units/bits/external/hacks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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