From 25d6ba5272795309f92b6a621f0b1d934083cd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Thu, 1 Sep 2022 08:57:50 +0200 Subject: [PATCH] Add HAVE_INTTYPES_H (GH PR #13) --- .../autoconf/checks/HAVE_INTTYPES_H.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h new file mode 100644 index 0000000..98514cf --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h @@ -0,0 +1,18 @@ +// HAVE_INTTYPES_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_INTTYPES_H + +/* Since OpenBSD 3.9, FreeBSD 5.0, NetBSD 5.0, Mac OS X 10.3 + * and glibc 2.2. + */ +#if BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 3) || \ + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 2) +# define HAVE_INTTYPES_H 1 +#endif