summaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
authorhansr <hk-git@circlestorm.org>2014-10-12 12:38:06 +0200
committerhansr <hk-git@circlestorm.org>2014-10-12 12:38:06 +0200
commitf7e1e0130fb198fa2d4d62b8990d2ab205985b3f (patch)
tree56b60d978ce22cea80c52be7962d6be5e8c0fef9 /zutil.c
parentf5c5de68590f559ceee1f26bca0eb2f4b26a21cd (diff)
Remove workarounds for non-ANSI-C compatible compilers (Part 1)
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c67
1 files changed, 0 insertions, 67 deletions
diff --git a/zutil.c b/zutil.c
index 35940c7..cdbd7a5 100644
--- a/zutil.c
+++ b/zutil.c
@@ -88,30 +88,6 @@ uLong ZEXPORT zlibCompileFlags()
#ifdef FASTEST
flags += 1L << 21;
#endif
-#if defined(STDC) || defined(Z_HAVE_STDARG_H)
-# ifdef NO_vsnprintf
- flags += 1L << 25;
-# ifdef HAS_vsprintf_void
- flags += 1L << 26;
-# endif
-# else
-# ifdef HAS_vsnprintf_void
- flags += 1L << 26;
-# endif
-# endif
-#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
-#endif
return flags;
}
@@ -147,53 +123,10 @@ const char * ZEXPORT zError(err)
int errno = 0;
#endif
-#ifndef HAVE_MEMCPY
-
-void ZLIB_INTERNAL zmemcpy(dest, source, len)
- Bytef* dest;
- const Bytef* source;
- uInt len;
-{
- if (len == 0) return;
- do {
- *dest++ = *source++; /* ??? to be unrolled */
- } while (--len != 0);
-}
-
-int ZLIB_INTERNAL zmemcmp(s1, s2, len)
- const Bytef* s1;
- const Bytef* s2;
- uInt len;
-{
- uInt j;
-
- for (j = 0; j < len; j++) {
- if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1;
- }
- return 0;
-}
-
-void ZLIB_INTERNAL zmemzero(dest, len)
- Bytef* dest;
- uInt len;
-{
- if (len == 0) return;
- do {
- *dest++ = 0; /* ??? to be unrolled */
- } while (--len != 0);
-}
-#endif
-
#ifndef Z_SOLO
#ifndef MY_ZCALLOC /* Any system without a special alloc function */
-#ifndef STDC
-extern voidp malloc OF((uInt size));
-extern voidp calloc OF((uInt items, uInt size));
-extern void free OF((voidpf ptr));
-#endif
-
voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
voidpf opaque;
unsigned items;