Add HAVE_STDINT_H, HAVE_*INT*_T (GH PR #19)

This commit is contained in:
Emil Rosenquist 2022-09-01 09:12:43 +02:00 committed by Boris Kolpackov
parent 30bc3f72c0
commit 7d2082cbb2
6 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// HAVE_STDINT_H : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_STDINT_H
/* Since Linux/glibc 2.0, OpenBSD 2.0, FreeBSD 5.0, NetBSD 1.6, Mac OS
* and win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_STDINT_H 1
#endif

View File

@ -0,0 +1,19 @@
// HAVE_UINT16_T : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_UINT16_T
/* Since Linux/glibc 2.0, OpenBSD 2.0, FreeBSD 5.0, NetBSD 1.6, Mac OS
* and win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_UINT16_T 1
#endif

View File

@ -0,0 +1,19 @@
// HAVE_UINT32_T : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_UINT32_T
/* Since Linux/glibc 2.0, OpenBSD 2.0, FreeBSD 5.0, NetBSD 1.6, Mac OS
* and win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_UINT32_T 1
#endif

View File

@ -0,0 +1,19 @@
// HAVE_UINT64_T : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_UINT64_T
/* Since Linux/glibc 2.0, OpenBSD 2.0, FreeBSD 5.0, NetBSD 1.6, Mac OS
* and win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_UINT64_T 1
#endif

View File

@ -0,0 +1,19 @@
// HAVE_UINT8_T : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_UINT8_T
/* Since Linux/glibc 2.0, OpenBSD 2.0, FreeBSD 5.0, NetBSD 1.6, Mac OS
* and win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_UINT8_T 1
#endif

View File

@ -0,0 +1,19 @@
// HAVE_UINTPTR_T : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_UINTPTR_T
/* Since Linux/glibc 2.0, OpenBSD 2.0, FreeBSD 5.0, NetBSD 1.6, Mac OS
* and win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_UINTPTR_T 1
#endif