Assume 64-bit pointers for now

To get rid of ifdef complexity. Put 32-bit support back in later.
This commit is contained in:
Lassi Kortela 2019-08-09 23:35:50 +03:00
parent d95a4660ad
commit 41f6dbc1a2
1 changed files with 2 additions and 20 deletions

View File

@ -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