mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-14 04:01:06 +00:00
fix for win32 zip support
This commit is contained in:
parent
2f8e140023
commit
8f3084e923
1 changed files with 14 additions and 5 deletions
|
@ -53,6 +53,16 @@
|
||||||
#endif
|
#endif
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
# define
|
||||||
|
# define
|
||||||
|
#else
|
||||||
|
# define setmode _setmode
|
||||||
|
# define O_BINARY _O_BINARY
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
Qexpand_squiggle(const char *path, char *dest)
|
Qexpand_squiggle(const char *path, char *dest)
|
||||||
{
|
{
|
||||||
|
@ -170,11 +180,10 @@ Qdopen(int fd, const char *mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef __BORLANDC__
|
if (file->file)
|
||||||
setmode(_fileno(file->file),O_BINARY);
|
setmode(_fileno(file->file),O_BINARY);
|
||||||
#else
|
else
|
||||||
_setmode(_fileno(file->file),_O_BINARY);
|
setmode(_fileno(file->gzfile),O_BINARY);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue