Mercurial > hg > th-libs
changeset 495:30c57a9ea3be
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 16 Dec 2019 00:30:20 +0200 |
parents | b235d8f292c5 |
children | 8c837a33cfb6 |
files | th_types.h |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/th_types.h Mon Dec 09 13:19:42 2019 +0200 +++ b/th_types.h Mon Dec 16 00:30:20 2019 +0200 @@ -30,10 +30,12 @@ // Check for arch bitness -#if UINTPTR_MAX == 0xffffffff -# define TH_ARCH 32 -#elif UINTPTR_MAX == 0xffffffffffffffff -# define TH_ARCH 64 +#if !defined(TH_ARCH) +# if UINTPTR_MAX == 0xffffffff +# define TH_ARCH 32 +# elif UINTPTR_MAX == 0xffffffffffffffff +# define TH_ARCH 64 +# endif #endif @@ -57,7 +59,6 @@ // Do we have a valid arch? // If so, set some printf specifiers and other useful things #if TH_ARCH == 32 -# define TH_ARCH_32BIT 1 # ifndef HAVE_INTTYPES_H // If we don't have ISO C99 inttypes.h, define PRI* macros # define PRIu32 "u" @@ -83,7 +84,6 @@ # define UINTPTR_MAX ( 0xffffffffUL) # endif #elif TH_ARCH == 64 -# define TH_ARCH_64BIT 1 # ifndef HAVE_INTTYPES_H # define PRIu32 "u" # define PRId32 "d"