Hacky compile fix for mingw compile issue reported by bat3a on bf-committers
[blender-staging.git] / extern / glog / src / windows / port.h
index d78a1854f46af6e6b78eedb1a7650164b530f48e..02c6f6e77b22897549440f7ff4a34f7538249d95 100644 (file)
@@ -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