diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-01-22 03:59:54 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-01-22 03:59:54 +0300 |
commit | 445f7910e88ab9b8f13fcb58e5ff030034a85a2d (patch) | |
tree | 0607d41961d3af4e68edb16b4d224e8b969e272d /extern/glog | |
parent | e965e92fa5712c2635ee45c8cd2be953bfc68915 (diff) |
Hacky compile fix for mingw compile issue reported by bat3a on bf-committers
I've been using this fix in another branch locally, so it seems to work fine.
The other #ifdef checks should be checked on too, as __MINGW32__ and __MINGW64__
do NOT seem to be defined when compiling that file
Diffstat (limited to 'extern/glog')
-rw-r--r-- | extern/glog/src/windows/port.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/glog/src/windows/port.h b/extern/glog/src/windows/port.h index d78a1854f46..02c6f6e77b2 100644 --- a/extern/glog/src/windows/port.h +++ b/extern/glog/src/windows/port.h @@ -149,8 +149,13 @@ inline struct tm* localtime_r(const time_t* timep, struct tm* result) { } inline char* strerror_r(int errnum, char* buf, size_t buflen) { +#ifdef FREE_WINDOWS + strncpy(buf, "Not implemented yet", buflen); + return buf; +#else strerror_s(buf, buflen, errnum); return buf; +#endif } #ifndef __cplusplus |