summaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-01-31 18:43:19 +0000
committerXin LI <delphij@FreeBSD.org>2012-01-31 18:43:19 +0000
commit48e633e3cf6760e7d6fe3be88fd4a393374433a7 (patch)
tree49981d4d98f3ad903c6e49bf37b4fe18a8893d48 /zutil.c
parent20c14533dda078fcc83f6ad7f1221933f1fdd87b (diff)
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c31
1 files changed, 7 insertions, 24 deletions
diff --git a/zutil.c b/zutil.c
index 898ed345b0e3e..8a1d2420937f9 100644
--- a/zutil.c
+++ b/zutil.c
@@ -1,5 +1,5 @@
/* zutil.c -- target dependent utility functions for the compression library
- * Copyright (C) 1995-2005, 2010 Jean-loup Gailly.
+ * Copyright (C) 1995-2005, 2010, 2011 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -85,31 +85,11 @@ uLong ZEXPORT zlibCompileFlags()
#ifdef FASTEST
flags += 1L << 21;
#endif
-#ifdef STDC
-# ifdef NO_vsnprintf
- flags += 1L << 25;
-# ifdef HAS_vsprintf_void
- flags += 1L << 26;
-# endif
-# else
-# ifdef HAS_vsnprintf_void
- flags += 1L << 26;
-# endif
-# endif
+#ifdef Z_SOLO
+ return flags;
#else
- flags += 1L << 24;
-# ifdef NO_snprintf
- flags += 1L << 25;
-# ifdef HAS_sprintf_void
- flags += 1L << 26;
-# endif
-# else
-# ifdef HAS_snprintf_void
- flags += 1L << 26;
-# endif
-# endif
+ return flags + gzflags();
#endif
- return flags;
}
#ifdef DEBUG
@@ -181,6 +161,7 @@ void ZLIB_INTERNAL zmemzero(dest, len)
}
#endif
+#ifndef Z_SOLO
#ifdef SYS16BIT
@@ -316,3 +297,5 @@ void ZLIB_INTERNAL zcfree (opaque, ptr)
}
#endif /* MY_ZCALLOC */
+
+#endif /* !Z_SOLO */