diff --git a/modules/websocket/lws_client.cpp b/modules/websocket/lws_client.cpp index add3931b50f1..835b0a15fa70 100644 --- a/modules/websocket/lws_client.cpp +++ b/modules/websocket/lws_client.cpp @@ -34,7 +34,7 @@ #include "core/io/stream_peer_ssl.h" #include "tls/mbedtls/wrapper/include/openssl/ssl.h" -#if defined(MINGW_ENABLED) || defined(_MSC_VER) +#if !defined(MINGW_ENABLED) && defined(_MSC_VER) #define strncpy strncpy_s #endif