]> git.lizzy.rs Git - zlib.git/blobdiff - gzclose.c
CMake build fixes
[zlib.git] / gzclose.c
index 2cf284360412dad626786ea9081441a0b3ae609e..caeb99a3177f477d622870255a00ac2b72f10cad 100644 (file)
--- a/gzclose.c
+++ b/gzclose.c
@@ -3,8 +3,6 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-#ifndef OLD_GZIO
-
 #include "gzguts.h"
 
 /* gzclose() is in a separate file so that it is linked in only if it is used.
@@ -17,7 +15,7 @@ int ZEXPORT gzclose(file)
     gz_statep state;
 
     if (file == NULL)
-        return EOF;
+        return Z_STREAM_ERROR;
     state = (gz_statep)file;
 
     return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
@@ -25,5 +23,3 @@ int ZEXPORT gzclose(file)
     return gzclose_r(file);
 #endif
 }
-
-#endif /* !OLD_GZIO */