diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-28 21:41:07 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-28 21:41:07 +0200 |
commit | c80e2d9d22325514382ddf0e95abe6268bd413a7 (patch) | |
tree | 3c8f8e0c278832a29d75e79751b4da17ffe57dfe /src | |
parent | 5835c5cb10719ecaa7ed12301730ae82a7e80667 (diff) |
Remove manual stdckdint.h implementation
Diffstat (limited to 'src')
-rw-r--r-- | src/ahoy/main.c | 14 |
1 files changed, 1 insertions, 13 deletions
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 <getopt.h> #include <inttypes.h> #include <limits.h> +#include <stdckdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -20,19 +21,6 @@ #include "gui.h" #include "macros.h" -/* TODO: Remove this once stdckdint.h is in GCC / Glibc */ -#if __has_include(<stdckdint.h>) -# include <stdckdint.h> -# 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) \ { \ |