From e297f7c2cefa0f9b6e4d28ac177d98b00b5436cb Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sat, 4 Jan 2025 16:01:14 -0500 Subject: [PATCH] check __cpp_lib_format --- include/ada/common_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ada/common_defs.h b/include/ada/common_defs.h index 2300c2ed5..2ebeb006e 100644 --- a/include/ada/common_defs.h +++ b/include/ada/common_defs.h @@ -250,8 +250,8 @@ namespace ada { #define ada_lifetime_bound #endif -#ifdef __has_include -#if __has_include() +#ifdef __cpp_lib_format +#if __cpp_lib_format >= 202110L #include #define ADA_HAS_FORMAT 1 #endif