From a9b126783de5315c449651770b40e5a7f4d09f33 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Mon, 14 Oct 2019 00:52:30 +0300 Subject: [PATCH] Test for 64-bit instead of assuming it --- c/scheme_compiler_gnuc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c/scheme_compiler_gnuc.h b/c/scheme_compiler_gnuc.h index c7a11a4..01cf886 100644 --- a/c/scheme_compiler_gnuc.h +++ b/c/scheme_compiler_gnuc.h @@ -2,7 +2,11 @@ typedef uintptr_t value_t; typedef uintptr_t ufixnum_t; typedef intptr_t fixnum_t; +#undef BITS64 +#if UINTPTR_MAX == 0xffffffffffffffffULL #define BITS64 +#endif + #define SCHEME_C_COMPILER_NAME "GCC" // TODO: wrong #define SCHEME_C_COMPILER_VERSION __VERSION__