mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 19:12:25 +00:00
Oh heck, I'm going around in circles to get size_t working cross platform. Trying again.
This commit is contained in:
parent
745c827c96
commit
3d356298cc
1 changed files with 5 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue