From 469f14ee27d7c68a61e5cf1115175967fc2b2c49 Mon Sep 17 00:00:00 2001 From: Robert Hodgson Date: Fri, 19 Apr 2024 08:25:32 +0100 Subject: [PATCH] Corrected the pre-processor syntax by removing the defined keyword when there is an expression associated with the #if condition --- include/sol/version.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sol/version.hpp b/include/sol/version.hpp index d7d59203..bf2fa1d6 100644 --- a/include/sol/version.hpp +++ b/include/sol/version.hpp @@ -98,7 +98,7 @@ #endif #if defined(SOL_COMPILER_VCXX) - #if defined(SOL_COMPILER_VCXX != 0) + #if (SOL_COMPILER_VCXX != 0) #define SOL_COMPILER_VCXX_I_ SOL_ON #else #define SOL_COMPILER_VCXX_I_ SOL_OFF @@ -110,7 +110,7 @@ #endif #if defined(SOL_COMPILER_GCC) - #if defined(SOL_COMPILER_GCC != 0) + #if (SOL_COMPILER_GCC != 0) #define SOL_COMPILER_GCC_I_ SOL_ON #else #define SOL_COMPILER_GCC_I_ SOL_OFF @@ -122,7 +122,7 @@ #endif #if defined(SOL_COMPILER_CLANG) - #if defined(SOL_COMPILER_CLANG != 0) + #if (SOL_COMPILER_CLANG != 0) #define SOL_COMPILER_CLANG_I_ SOL_ON #else #define SOL_COMPILER_CLANG_I_ SOL_OFF @@ -134,7 +134,7 @@ #endif #if defined(SOL_COMPILER_EDG) - #if defined(SOL_COMPILER_EDG != 0) + #if (SOL_COMPILER_EDG != 0) #define SOL_COMPILER_EDG_I_ SOL_ON #else #define SOL_COMPILER_EDG_I_ SOL_OFF