From 41f6dbc1a24eb6cb4f2e38b9450a44bca2fe25e8 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Fri, 9 Aug 2019 23:35:50 +0300 Subject: [PATCH] Assume 64-bit pointers for now To get rid of ifdef complexity. Put 32-bit support back in later. --- c/dtypes.h | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/c/dtypes.h b/c/dtypes.h index 5d59da0..d38f484 100644 --- a/c/dtypes.h +++ b/c/dtypes.h @@ -27,26 +27,8 @@ #error "unknown platform" #endif -#if defined(OPENBSD) || defined(FREEBSD) -#if defined(__x86_64__) -#define __SIZEOF_POINTER__ 8 -#else -#define __SIZEOF_POINTER__ 4 -#endif -#endif - -#if !defined(BITS32) && !defined(BITS64) -#ifndef __SIZEOF_POINTER__ -#error "__SIZEOF_POINTER__ undefined" -#endif -#if (8 == __SIZEOF_POINTER__) -#define BITS64 -#elif (4 == __SIZEOF_POINTER__) -#define BITS32 -#else -#error "this is one weird machine" -#endif -#endif +#undef BITS32 // TODO +#define BITS64 // TODO #if defined(WIN32) #define STDCALL __stdcall