diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-06-04 09:45:33 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-06-04 09:45:33 -0400 |
commit | 994c98b6c089f7a467444f277feb312679cfb20f (patch) | |
tree | 6230212a117ac8ce5901bf0e5a11568f7e268499 /validate.h | |
parent | 3afb1f1099dfe7f0a2a851c43f251de719fe17ce (diff) | |
download | cryptopp-git-994c98b6c089f7a467444f277feb312679cfb20f.tar.gz |
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)
Diffstat (limited to 'validate.h')
-rw-r--r-- | validate.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 >= 1 || _BSD_SOURCE >= 1 || _SVID_SOURCE >= 1 || _POSIX_SOURCE >= 1)
+#elif (_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || defined(_POSIX_SOURCE))
tm localTime = {};
char timeBuf[64];
char* timeString = ::asctime_r(::localtime_r(&t, &localTime), timeBuf);
|