Merge pull request #344 from dzung-hoang/master

Fix errors with BUILD_SHARED_LIBS=ON for Visual Studio 2017 (fixes #343)
This commit is contained in:
Sergiu Deitsch 2018-07-16 09:18:06 +02:00 committed by GitHub
commit 8d7a107d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ enum { PTHREAD_ONCE_INIT = 0 }; // important that this be 0! for SpinLock
#endif // HAVE_PTHREAD
#ifndef HAVE_LOCALTIME_R
extern struct tm* GOOGLE_GLOG_DLL_DECL localtime_r(const time_t* timep, struct tm* result);
extern GOOGLE_GLOG_DLL_DECL struct tm* localtime_r(const time_t* timep, struct tm* result);
#endif // not HAVE_LOCALTIME_R
inline char* strerror_r(int errnum, char* buf, size_t buflen) {