aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ahoy/main.c14
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) \
{ \