Add HAVE_VASPRINTF (GH PR #25)

This commit is contained in:
Emil Rosenquist 2022-09-01 09:26:03 +02:00 committed by Boris Kolpackov
parent f6498ae4d5
commit 0745c11a0b

View File

@ -0,0 +1,17 @@
// HAVE_VASPRINTF : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_VASPRINTF
/* Since glibc 2.1, FreeBSD 2.2, OpenBSD 2.9, NetBSD 1.4 and MacOS
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 2) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 4) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_VASPRINTF 1
#endif