Fix GCC compile on AIX

In file included from test.cpp:31:0:
validate.h:213:93: error: operator '||' has no right operand
 #elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE)
pull/853/head
Jeffrey Walton 2019-06-04 09:37:28 -04:00
parent 198b081df5
commit 3afb1f1099
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ inline std::string TimeToString(const time_t& t)
CRYPTOPP_ASSERT(err == 0); CRYPTOPP_ASSERT(err == 0);
std::string str(err == 0 ? timeBuf : ""); std::string str(err == 0 ? timeBuf : "");
#elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE) #elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE >= 1 || _BSD_SOURCE >= 1 || _SVID_SOURCE >= 1 || _POSIX_SOURCE >= 1)
tm localTime = {}; tm localTime = {};
char timeBuf[64]; char timeBuf[64];
char* timeString = ::asctime_r(::localtime_r(&t, &localTime), timeBuf); char* timeString = ::asctime_r(::localtime_r(&t, &localTime), timeBuf);