From cf07fef5900e25e581c94666b7ab89b412ea1a50 Mon Sep 17 00:00:00 2001 From: Ogre Transporter Date: Tue, 7 Nov 2023 06:30:25 +0000 Subject: [PATCH] msvc: avoid error about mixed ellipsis and cond https://github.com/warmcat/libwebsockets/issues/3001 --- lib/core/context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/core/context.c b/lib/core/context.c index 218d92441..c1132d975 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -791,11 +791,10 @@ lws_create_context(const struct lws_context_creation_info *info) mbedtls_version_get_string(mbedtls_version); #endif - lwsl_cx_notice(context, #if defined(LWS_WITH_MBEDTLS) - "LWS: %s, MbedTLS-%s %s%s", library_version, mbedtls_version, opts_str, s); + lwsl_cx_notice(context, "LWS: %s, MbedTLS-%s %s%s", library_version, mbedtls_version, opts_str, s); #else - "LWS: %s, %s%s", library_version, opts_str, s); + lwsl_cx_notice(context, "LWS: %s, %s%s", library_version, opts_str, s); #endif #if defined(LWS_WITH_NETWORK)