Test for 64-bit instead of assuming it

This commit is contained in:
Lassi Kortela 2019-10-14 00:52:30 +03:00
parent 124bd6a140
commit a9b126783d
1 changed files with 4 additions and 0 deletions

View File

@ -2,7 +2,11 @@ typedef uintptr_t value_t;
typedef uintptr_t ufixnum_t; typedef uintptr_t ufixnum_t;
typedef intptr_t fixnum_t; typedef intptr_t fixnum_t;
#undef BITS64
#if UINTPTR_MAX == 0xffffffffffffffffULL
#define BITS64 #define BITS64
#endif
#define SCHEME_C_COMPILER_NAME "GCC" // TODO: wrong #define SCHEME_C_COMPILER_NAME "GCC" // TODO: wrong
#define SCHEME_C_COMPILER_VERSION __VERSION__ #define SCHEME_C_COMPILER_VERSION __VERSION__