From 0bbcbb72070d7f61b5d6e70093e3ccfdc7d091fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 9 Apr 2024 20:47:01 +0200 Subject: Fix build on Alpine --- hex.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hex.c') diff --git a/hex.c b/hex.c index 33aaeb8..0874613 100644 --- a/hex.c +++ b/hex.c @@ -71,6 +71,12 @@ enum #include #include #include + +// This test is too annoying to do in CMake due to CheckTypeSize() being unable +// to take link_directories(), and the Lua constant is documented. +#if LUA_MAXINTEGER < INT64_MAX +#error Lua must have at least 64-bit integers +#endif #endif // WITH_LUA #define APP_TITLE PROGRAM_NAME ///< Left top corner -- cgit v1.2.3