mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Fix MinGW compile
Also see https://groups.google.com/d/msg/cryptopp-users/fVLk79sIBEE/Euhu6x9nAQAJ
This commit is contained in:
parent
cc23a39fb9
commit
b706548e6c
@ -212,6 +212,9 @@ inline std::string TimeToString(const time_t& t)
|
||||
CRYPTOPP_ASSERT(err == 0);
|
||||
|
||||
std::string str(err == 0 ? timeBuf : "");
|
||||
#elif defined(__MINGW32__) || defined(__MINGW64__)
|
||||
char* timeString = ::asctime(::localtime(&t));
|
||||
std::string str(timeString ? timeString : "");
|
||||
#elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || defined(_POSIX_SOURCE))
|
||||
tm localTime;
|
||||
char timeBuf[64];
|
||||
|
Loading…
Reference in New Issue
Block a user