Add more checks

This commit is contained in:
RYAN 2024-08-27 10:28:08 +02:00
parent 687358145b
commit 523280a23d
Signed by: RYAN
GPG Key ID: 3BD93EABD1407B82
11 changed files with 168 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// HAVE_LLRINT : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_LLRINT
/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_LLRINT 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_LLRINTF : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_LLRINTF
/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_LLRINTF 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_LRINT : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_LRINT
/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_LRINT 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_LRINTF : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_LRINTF
/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_LRINTF 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_LSTAT : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_LSTAT
/* Since glibc 2.19.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19)
# define HAVE_LSTAT 1
#endif

View File

@ -0,0 +1,11 @@
// HAVE_MMX
#undef HAVE_MMX
/* Assumed to be available on anything x86 or x86_64.
*/
#if defined(_M_X64) || defined(__amd64__) || defined(i386)
# define HAVE_MMX 1
#else
# define HAVE_MMX 0
#endif

View File

@ -0,0 +1,11 @@
// HAVE_MMXEXT
#undef HAVE_MMXEXT
/* Assumed to be available on anything x86 or x86_64.
*/
#if defined(_M_X64) || defined(__amd64__) || defined(i386)
# define HAVE_MMXEXT 1
#else
# define HAVE_MMXEXT 0
#endif

View File

@ -0,0 +1,18 @@
// HAVE_RINT : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_RINT
/* Since glibc 2.19, FreeBSD 1.0, OpenBSD 2.2, NetBSD 1.3 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(199712) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_RINT 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_TRUNC : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_TRUNC
/* Since glibc 2.1, FreeBSD 5.3, OpenBSD 4.0, NetBSD 4.0 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 3) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200611) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(4, 0) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_TRUNC 1
#endif

View File

@ -0,0 +1,18 @@
// HAVE_TRUNCF : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_TRUNCF
/* Since glibc 2.1, FreeBSD 5.3, OpenBSD 4.0, NetBSD 4.0 and MacOS, Win32.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 3) || \
BUILD2_AUTOCONF_OPENBSD_PREREQ(200611) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(4, 0) || \
defined(BUILD2_AUTOCONF_MACOS) || \
defined(_WIN32)
# define HAVE_TRUNCF 1
#endif

View File

@ -0,0 +1,7 @@
// HAVE_WINRT
#undef HAVE_WINRT
#if defined(_WINRT_DLL_)
# define HAVE_WINRT 1
#endif