From 378c54c3f9fa98aae0058f882f226d9b8b4a717f Mon Sep 17 00:00:00 2001 From: ruxixa Date: Fri, 28 Jun 2024 09:24:31 +0200 Subject: [PATCH] Fix C++ standard detection --- include/tls_client.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/tls_client.hpp b/include/tls_client.hpp index 4cb1598..c3d5ab1 100644 --- a/include/tls_client.hpp +++ b/include/tls_client.hpp @@ -44,11 +44,10 @@ // // Check if the C++ standard is higher than 17 // -#if (!(defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus <= 201703L) +#if !((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || (!defined(_MSVC_LANG) && __cplusplus >= 201703L)) #error "Unsupported C++ standard (use 17 or higher)" #endif - /** * @brief LOAD_LIBRARY macro *