From c80e2d9d22325514382ddf0e95abe6268bd413a7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 28 May 2024 21:41:07 +0200 Subject: Remove manual stdckdint.h implementation --- src/ahoy/main.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/ahoy/main.c b/src/ahoy/main.c index f1feef5..f0e9790 100644 --- a/src/ahoy/main.c +++ b/src/ahoy/main.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -20,19 +21,6 @@ #include "gui.h" #include "macros.h" -/* TODO: Remove this once stdckdint.h is in GCC / Glibc */ -#if __has_include() -# include -# warning "stdckdint.h now available; remove manual ckd_*() implementations" -#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) -# define ckd_mul(r, a, b) -# warning "ckd_*() not supported on the current platform" -#endif - #define STRTOX(T, SUF) \ static T strto##SUF(const char8_t *s, rune *ch) \ { \ -- cgit v1.2.3