--- embedaddon/sudo/zlib/zutil.c 2012/02/21 16:23:02 1.1.1.1 +++ embedaddon/sudo/zlib/zutil.c 2013/07/22 10:46:14 1.1.1.2 @@ -1,9 +1,9 @@ /* 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 */ -/* @(#) $Id: zutil.c,v 1.1.1.1 2012/02/21 16:23:02 misho Exp $ */ +/* @(#) $Id: zutil.c,v 1.1.1.2 2013/07/22 10:46:14 misho Exp $ */ #include "zutil.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 */