From c4ec18c5033eb4766f35f141b07ba98a52844688 Mon Sep 17 00:00:00 2001 From: Emil Rosenquist <37864286+EmilRosenquist@users.noreply.github.com> Date: Thu, 1 Sep 2022 10:17:46 +0200 Subject: [PATCH] Add SIZEOF_VOID_P (GH PR #32) --- .../libbuild2/autoconf/checks/SIZEOF_VOID_P.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/SIZEOF_VOID_P.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/SIZEOF_VOID_P.h b/libbuild2-autoconf/libbuild2/autoconf/checks/SIZEOF_VOID_P.h new file mode 100644 index 0000000..7c543af --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/SIZEOF_VOID_P.h @@ -0,0 +1,9 @@ +// SIZEOF_VOID_P + +#undef SIZEOF_VOID_P + +#if defined(_WIN64) || defined(__x86_64__) || defined(__ppc64__) +# define SIZEOF_VOID_P 8 +#else +# define SIZEOF_VOID_P 4 +#endif