aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc/bufalloc_noterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloc/bufalloc_noterm.c')
-rw-r--r--lib/alloc/bufalloc_noterm.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/alloc/bufalloc_noterm.c b/lib/alloc/bufalloc_noterm.c
index 8258521..e46d2a1 100644
--- a/lib/alloc/bufalloc_noterm.c
+++ b/lib/alloc/bufalloc_noterm.c
@@ -1,17 +1,5 @@
#include <errno.h>
-#if __has_include(<stdckdint.h>)
-# include <stdckdint.h>
-# 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))
-#else
-# define ckd_add(r, a, b) (*(r) = (a) + (b))
-# define ckd_mul(r, a, b) (*(r) = (a) * (b))
-# warning "ckd_*() not supported on the current platform"
-#endif
+#include <stdckdint.h>
#include <stdlib.h>
#include "alloc.h"