aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloc')
-rw-r--r--lib/alloc/bufalloc.c4
1 files changed, 3 insertions, 1 deletions
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 <errno.h>
#if __has_include(<stdckdint.h>)
# include <stdckdint.h>
-# 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))