aboutsummaryrefslogtreecommitdiff
path: root/src/bzip2/bzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bzip2/bzlib.c')
-rw-r--r--src/bzip2/bzlib.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bzip2/bzlib.c b/src/bzip2/bzlib.c
index b98f3e5..bd358a7 100644
--- a/src/bzip2/bzlib.c
+++ b/src/bzip2/bzlib.c
@@ -8,8 +8,8 @@
This file is part of bzip2/libbzip2, a program and library for
lossless, block-sorting data compression.
- bzip2/libbzip2 version 1.0.5 of 10 December 2007
- Copyright (C) 1996-2007 Julian Seward <jseward@bzip.org>
+ bzip2/libbzip2 version 1.0.6 of 6 September 2010
+ Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
Please read the WARNING, DISCLAIMER and PATENTS sections in the
README file.
@@ -28,7 +28,6 @@
bzBuffToBuffDecompress. Fixed.
*/
-#define _CRT_SECURE_NO_WARNINGS
#include "bzlib_private.h"
@@ -1376,7 +1375,7 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
#if defined(_WIN32) || defined(OS2) || defined(MSDOS)
# include <fcntl.h>
# include <io.h>
-# define SET_BINARY_MODE(file) _setmode(_fileno(file),O_BINARY)
+# define SET_BINARY_MODE(file) setmode(fileno(file),O_BINARY)
#else
# define SET_BINARY_MODE(file)
#endif
@@ -1429,7 +1428,7 @@ BZFILE * bzopen_or_bzdopen
#ifdef BZ_STRICT_ANSI
fp = NULL;
#else
- fp = _fdopen(fd,mode2);
+ fp = fdopen(fd,mode2);
#endif
}
if (fp == NULL) return NULL;