From 50a94f972d26ee15fc22cce657d13023d1022905 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 26 Jan 2021 09:41:55 +0000 Subject: Fix debug macro situation (#5114) Use the standard NDEBUG. --- src/mbedTLS++/SslConfig.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mbedTLS++') diff --git a/src/mbedTLS++/SslConfig.cpp b/src/mbedTLS++/SslConfig.cpp index 4b7882dcf..8ea850c9f 100644 --- a/src/mbedTLS++/SslConfig.cpp +++ b/src/mbedTLS++/SslConfig.cpp @@ -13,7 +13,7 @@ // #define ENABLE_SSL_DEBUG_MSG -#if defined(_DEBUG) && defined(ENABLE_SSL_DEBUG_MSG) +#if !defined(NDEBUG) && defined(ENABLE_SSL_DEBUG_MSG) #include "mbedtls/debug.h" @@ -95,7 +95,7 @@ return 0; } } -#endif // defined(_DEBUG) && defined(ENABLE_SSL_DEBUG_MSG) +#endif // !defined(NDEBUG) && defined(ENABLE_SSL_DEBUG_MSG) @@ -238,7 +238,7 @@ std::shared_ptr cSslConfig::MakeDefaultConfig(bool a_IsClient) Ret->SetAuthMode(eSslAuthMode::None); // We cannot verify because we don't have a CA chain - #ifdef _DEBUG + #ifndef NDEBUG #ifdef ENABLE_SSL_DEBUG_MSG Ret->SetDebugCallback(&SSLDebugMessage, nullptr); Ret->SetVerifyCallback(SSLVerifyCert, nullptr); -- cgit v1.2.3