Update HAVE_AFUNIX_H to use BUILD2_AUTOCONF_MINGW_PREREQ
This commit is contained in:
parent
ef18e9680b
commit
728c7bfddb
@ -1,20 +1,16 @@
|
||||
// HAVE_AFUNIX_H
|
||||
// HAVE_AFUNIX_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_AFUNIX_H
|
||||
|
||||
/* Note that __MINGW32_*_VERSION seems to be frozen and so cannot be used
|
||||
* for this check. Which means this header is never available on 32-bit
|
||||
* MinGW.
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include <sdkddkver.h>
|
||||
# if defined(WDK_NTDDI_VERSION) && WDK_NTDDI_VERSION >= NTDDI_WIN10_19H1
|
||||
# define HAVE_AFUNIX_H 1
|
||||
# endif
|
||||
#elif defined(__MINGW64__)
|
||||
# include <stddef.h>
|
||||
# if defined(__MINGW64_MAJOR_VERSION) && __MINGW64_MAJOR_VERSION >= 11
|
||||
#elif BUILD2_AUTOCONF_MINGW_PREREQ(11, 0)
|
||||
# define HAVE_AFUNIX_H 1
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user