From 3afb1f1099dfe7f0a2a851c43f251de719fe17ce Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 4 Jun 2019 09:37:28 -0400 Subject: [PATCH] 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) --- validate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate.h b/validate.h index a5352095..a0333ccf 100644 --- a/validate.h +++ b/validate.h @@ -210,7 +210,7 @@ inline std::string TimeToString(const time_t& t) CRYPTOPP_ASSERT(err == 0); 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 = {}; char timeBuf[64]; char* timeString = ::asctime_r(::localtime_r(&t, &localTime), timeBuf);