aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/include/internal/common.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-29 00:42:05 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-29 00:42:05 +0100
commitb8f4479a17e1add06e1532a00ae913cc0f4e9567 (patch)
treec724d7e1cb053b35cefd87d02109abac846fe0a5 /vendor/librune/include/internal/common.h
parent3d9a150f522278f8ab37e299f9aa187931ea2d56 (diff)
Bump librune
Diffstat (limited to 'vendor/librune/include/internal/common.h')
-rw-r--r--vendor/librune/include/internal/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/librune/include/internal/common.h b/vendor/librune/include/internal/common.h
index ace9e63..a05f33c 100644
--- a/vendor/librune/include/internal/common.h
+++ b/vendor/librune/include/internal/common.h
@@ -3,6 +3,8 @@
/* IWYU pragma: private */
+#include <limits.h>
+
#define lengthof(a) (sizeof(a) / sizeof(*(a)))
#define U1(x) (((x)&0x80) == 0x00)
@@ -20,4 +22,8 @@
#define LATIN1_MAX 0xFF
+#if BITINT_MAXWIDTH >= LATIN1_MAX + 1
+# define BIT_LOOKUP 1
+#endif
+
#endif /* !RUNE_INTERNAL_COMMON_H */