mirror of https://github.com/BOINC/boinc.git
- unix compile fix
svn path=/trunk/boinc/; revision=20949
This commit is contained in:
parent
6449eb1ec4
commit
86c061425d
|
@ -57,8 +57,12 @@ int MFILE::open(const char* path, const char* mode) {
|
|||
// seems like Win's realloc is stupid, Make it smart.
|
||||
//
|
||||
static inline char* realloc_aux(char* p, int len) {
|
||||
#ifdef _WIN32
|
||||
if (_msize(p) >= len) return p;
|
||||
return (char*) realloc(p, len*2);
|
||||
#else
|
||||
return (char*) realloc(p, len);
|
||||
#endif
|
||||
}
|
||||
|
||||
#define BUFSIZE 100000
|
||||
|
|
Loading…
Reference in New Issue