mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 12:11:34 +00:00
fix a couple of thinkos
This commit is contained in:
parent
c8e95a85fd
commit
e7a25fb76a
1 changed files with 1 additions and 6 deletions
|
@ -54,10 +54,7 @@
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef __BORLANDC__
|
#ifndef __BORLANDC__
|
||||||
# define
|
|
||||||
# define
|
|
||||||
#else
|
|
||||||
# define setmode _setmode
|
# define setmode _setmode
|
||||||
# define O_BINARY _O_BINARY
|
# define O_BINARY _O_BINARY
|
||||||
#endif
|
#endif
|
||||||
|
@ -182,8 +179,6 @@ Qdopen(int fd, const char *mode)
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (file->file)
|
if (file->file)
|
||||||
setmode(_fileno(file->file),O_BINARY);
|
setmode(_fileno(file->file),O_BINARY);
|
||||||
else
|
|
||||||
setmode(_fileno(file->gzfile),O_BINARY);
|
|
||||||
#endif
|
#endif
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue