aboutsummaryrefslogtreecommitdiff
path: root/contrib/minizip/unzip.c
diff options
context:
space:
mode:
authorAlexander Miller <alex.miller@gmx.de>2024-03-11 22:24:14 +0100
committerMark Adler <madler@alumni.caltech.edu>2024-03-16 11:18:50 -0700
commitf02ea29e5f5f1b14e71dfdf44bf39ee969ca9bde (patch)
tree99debedf9a82e19807b7aabff8b556d804752a2e /contrib/minizip/unzip.c
parent9f418e1028d98cd4782fd3a2b883eaaf1a09cae5 (diff)
downloadzlib-f02ea29e5f5f1b14e71dfdf44bf39ee969ca9bde.tar.gz
zlib-f02ea29e5f5f1b14e71dfdf44bf39ee969ca9bde.tar.bz2
zlib-f02ea29e5f5f1b14e71dfdf44bf39ee969ca9bde.zip
Improve detection of UNIX-style systems in minizip.
Not all toolchains on UNIX-style operating systems predefine "unix". For example, it's missing on NetBSD, OpenBSD/gcc, AIX, HP-UX. There is no single macro defined everywhere, but checking both "__unix__" and "__unix" should cover everything except macOS, which is already checked for using "__APPLE__". Note that case sensitivity should default to off on macOS and cygwin, so the check there is different.
Diffstat (limited to '')
-rw-r--r--contrib/minizip/unzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
index b5783ca..feaec67 100644
--- a/contrib/minizip/unzip.c
+++ b/contrib/minizip/unzip.c
@@ -88,7 +88,7 @@
88 88
89 89
90#ifndef CASESENSITIVITYDEFAULT_NO 90#ifndef CASESENSITIVITYDEFAULT_NO
91# if !defined(unix) && !defined(CASESENSITIVITYDEFAULT_YES) 91# if (!defined(__unix__) && !defined(__unix) || defined(__CYGWIN__)) && !defined(CASESENSITIVITYDEFAULT_YES)
92# define CASESENSITIVITYDEFAULT_NO 92# define CASESENSITIVITYDEFAULT_NO
93# endif 93# endif
94#endif 94#endif