From 445f7910e88ab9b8f13fcb58e5ff030034a85a2d Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 22 Jan 2016 13:59:54 +1300 Subject: 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 --- extern/glog/src/windows/port.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extern/glog') 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 -- cgit v1.2.3