From 36ffb88a365ecf9943e5739acb923a36f77d0c21 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 7 Mar 2024 10:07:58 +0100 Subject: Minor tweaks --- lib/alloc/bufalloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/alloc') diff --git a/lib/alloc/bufalloc.c b/lib/alloc/bufalloc.c index a81f5b9..dcb0a93 100644 --- a/lib/alloc/bufalloc.c +++ b/lib/alloc/bufalloc.c @@ -1,7 +1,9 @@ #include #if __has_include() # include -# warning "stdckdint.h now available; remove manual ckd_*() implementations" +# ifdef __APPLE__ +# warning "stdckdint.h now available on Mac; remove manual ckd_*() code" +# endif #elifdef __GNUC__ # define ckd_add(r, a, b) ((bool)__builtin_add_overflow(a, b, r)) # define ckd_mul(r, a, b) ((bool)__builtin_mul_overflow(a, b, r)) -- cgit v1.2.3