Skip to content

Commit

Permalink
Corrected the pre-processor syntax by removing the defined keyword wh…
Browse files Browse the repository at this point in the history
…en there is an expression associated with the #if condition
  • Loading branch information
Strings-RH authored and ThePhD committed Jul 13, 2024
1 parent ab83eac commit 469f14e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/sol/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 469f14e

Please sign in to comment.