From 2f67e21393c25943f25e116fa6912b7d92dbca4e Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Tue, 24 Mar 2020 14:45:15 -0700 Subject: turn ptrdiff_t into a 64 bit type while technically a 32 bit ptrdiff_t is in spec on systems with 64 bit ponters as long as we guarantee that individual objects are small enough, this can confuse legitimate code, so lets fix this. --- arm64/include/ape/stddef.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arm64/include/ape/stddef.h (limited to 'arm64/include') diff --git a/arm64/include/ape/stddef.h b/arm64/include/ape/stddef.h new file mode 100644 index 000000000..2a217ba90 --- /dev/null +++ b/arm64/include/ape/stddef.h @@ -0,0 +1,7 @@ +#ifndef __STDDEF_ARCH_H +#define __STDDEF_ARCH_H + +typedef long long _ptrdiff_t; +#include "/sys/include/ape/stddef.h" + +#endif /* __STDDEF_ARCH_H */ -- cgit v1.2.3