Skip to content

Commit 262f0ed

Browse files
committed
Rename _NO_SSL_LEAK_SUPPRESS macro to CPPREST_NO_SSL_LEAK_SUPPRESS. We should avoid using reserved macro names.
1 parent 317cdf8 commit 262f0ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Release/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ if (NOT CPPREST_EXCLUDE_WEBSOCKETS)
217217
" _SSL_LEAK_SUPPRESS_AVAILABLE)
218218
if (NOT _SSL_LEAK_SUPPRESS_AVAILABLE)
219219
# libressl doesn't ship with the cleanup method being used in ws_client_wspp
220-
add_definitions(-D_NO_SSL_LEAK_SUPPRESS)
220+
add_definitions(-DCPPREST_NO_SSL_LEAK_SUPPRESS)
221221
endif()
222222
endif()
223223

Release/src/websockets/client/ws_client_wspp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
// but this function is unaccessible from the application code as OpenSSL is
5858
// statically linked into the C++ REST SDK DLL. So, just to be nice, call it
5959
// here ourselves -- even if the real problem is in ASIO (up to v1.60.0).
60-
#if defined(_WIN32) && !defined(NDEBUG) && !defined(_NO_SSL_LEAK_SUPPRESS)
60+
#if defined(_WIN32) && !defined(NDEBUG) && !defined(CPPREST_NO_SSL_LEAK_SUPPRESS)
6161

6262
#include <openssl/ssl.h>
6363
static struct ASIO_SSL_memory_leak_suppress

0 commit comments

Comments
 (0)