OpenBSD: x86 use few clang compatible C types

This commit is contained in:
Christian Jullien 2021-01-11 12:19:09 +01:00
parent db6dd66047
commit 42220676d7

View File

@ -18,8 +18,13 @@
#if __SIZEOF_POINTER__ == 4
/* 32bit systems. */
#if defined TARGETOS_OpenBSD
#define __SIZE_TYPE__ unsigned long
#define __PTRDIFF_TYPE__ long
#else
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#endif
#define __ILP32__ 1
#define __INT64_TYPE__ long long
#elif __SIZEOF_LONG__ == 4