From 4b9024013da3703edf9aa149693cda35e231688f Mon Sep 17 00:00:00 2001 From: Emil Rosenquist <37864286+EmilRosenquist@users.noreply.github.com> Date: Thu, 1 Sep 2022 10:21:11 +0200 Subject: [PATCH] Add HAVE_AFUNIX_H (GH PR #37) --- .../libbuild2/autoconf/checks/HAVE_AFUNIX_H.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AFUNIX_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AFUNIX_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AFUNIX_H.h new file mode 100644 index 0000000..a02827e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AFUNIX_H.h @@ -0,0 +1,20 @@ +// HAVE_AFUNIX_H + +#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 +# if defined(WDK_NTDDI_VERSION) && WDK_NTDDI_VERSION >= NTDDI_WIN10_19H1 +# define HAVE_AFUNIX_H 1 +# endif +#elif defined(__MINGW64__) +# include +# if defined(__MINGW64_MAJOR_VERSION) && __MINGW64_MAJOR_VERSION >= 11 +# define HAVE_AFUNIX_H 1 +# endif +#endif