Oh heck, I'm going around in circles to get size_t working cross platform. Trying again.

This commit is contained in:
David Brown 2016-08-23 17:54:17 +01:00
parent 745c827c96
commit 3d356298cc

View file

@ -18,18 +18,16 @@ typedef unsigned char SYSTEM_CARD8;
#if (__SIZEOF_POINTER__ == 8)
#if defined(_WIN64)
typedef unsigned long long SYSTEM_ADDRESS;
typedef unsigned long long size_t;
#else
typedef unsigned long SYSTEM_ADDRESS;
typedef unsigned long size_t;
#endif
#else
typedef unsigned int SYSTEM_ADDRESS;
typedef unsigned int size_t;
#endif
// For FreeBSD and OpenBSD:
typedef SYSTEM_ADDRESS size_t;
#define _SIZE_T_DECLARED
#define SYSTEM_ADDRESS size_t
#define _SIZE_T_DECLARED // For FreeBSD and OpenBSD:
void *memcpy(void *dest, const void *source, SYSTEM_ADDRESS size);