mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Fix -Wexpansion-to-defined warning with clang-3.9
The error message was: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160118/147239.html
This commit is contained in:
@@ -26,7 +26,13 @@
|
|||||||
|
|
||||||
#include <openssl/opensslv.h>
|
#include <openssl/opensslv.h>
|
||||||
|
|
||||||
|
#if defined(LIBRESSL_VERSION_NUMBER)
|
||||||
|
#define LIBRESSL_IN_USE 1
|
||||||
|
#else // !defined(LIBRESSL_VERSION_NUMBER)
|
||||||
|
#define LIBRESSL_IN_USE 0
|
||||||
|
#endif // !defined(LIBRESSL_VERSION_NUMBER)
|
||||||
|
|
||||||
#define OPENSSL_1_1_API \
|
#define OPENSSL_1_1_API \
|
||||||
(!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1010000fL)
|
(!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL)
|
||||||
|
|
||||||
#endif // OPENSSL_COMPAT_H
|
#endif // OPENSSL_COMPAT_H
|
||||||
|
|||||||
Reference in New Issue
Block a user