mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 05:27:51 +08:00
272269583c
Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
54 lines
1.4 KiB
Diff
54 lines
1.4 KiB
Diff
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
|
|
index a7f24cc..a1b359b 100644
|
|
--- a/zconf.h.cmakein
|
|
+++ b/zconf.h.cmakein
|
|
@@ -434,11 +434,19 @@ typedef uLong FAR uLongf;
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
|
|
-# define Z_HAVE_UNISTD_H
|
|
+# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1
|
|
+# define Z_HAVE_UNISTD_H
|
|
+# elif HAVE_UNISTD_H != 0
|
|
+# define Z_HAVE_UNISTD_H
|
|
+# endif
|
|
#endif
|
|
|
|
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
|
|
-# define Z_HAVE_STDARG_H
|
|
+# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1
|
|
+# define Z_HAVE_STDARG_H
|
|
+# elif HAVE_STDARG_H != 0
|
|
+# define Z_HAVE_STDARG_H
|
|
+# endif
|
|
#endif
|
|
|
|
#ifdef STDC
|
|
diff --git a/zconf.h.in b/zconf.h.in
|
|
index 5e1d68a..32f53c8 100644
|
|
--- a/zconf.h.in
|
|
+++ b/zconf.h.in
|
|
@@ -432,11 +432,19 @@ typedef uLong FAR uLongf;
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
|
|
-# define Z_HAVE_UNISTD_H
|
|
+# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1
|
|
+# define Z_HAVE_UNISTD_H
|
|
+# elif HAVE_UNISTD_H != 0
|
|
+# define Z_HAVE_UNISTD_H
|
|
+# endif
|
|
#endif
|
|
|
|
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
|
|
-# define Z_HAVE_STDARG_H
|
|
+# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1
|
|
+# define Z_HAVE_STDARG_H
|
|
+# elif HAVE_STDARG_H != 0
|
|
+# define Z_HAVE_STDARG_H
|
|
+# endif
|
|
#endif
|
|
|
|
#ifdef STDC
|
|
|