Commit 65e7a3bd authored by hybrid's avatar hybrid

Fix warnings, MSVC version only guessed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3003 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0a9e77fd
......@@ -1375,7 +1375,11 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
#if defined(_WIN32) || defined(OS2) || defined(MSDOS)
# include <fcntl.h>
# include <io.h>
#if _MSC_VER > 1410
# define SET_BINARY_MODE(file) _setmode(_fileno(file),O_BINARY)
#else
# define SET_BINARY_MODE(file) setmode(fileno(file),O_BINARY)
#endif
#else
# define SET_BINARY_MODE(file)
#endif
......@@ -1427,8 +1431,12 @@ BZFILE * bzopen_or_bzdopen
} else {
#ifdef BZ_STRICT_ANSI
fp = NULL;
#else
#if _MSC_VER > 1410
fp = _fdopen(fd,mode2);
#else
fp = fdopen(fd,mode2);
#endif
#endif
}
if (fp == NULL) return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment