Skip to content

Commit 469f14e

Browse files
Strings-RHThePhD
authored andcommitted
Corrected the pre-processor syntax by removing the defined keyword when there is an expression associated with the #if condition
1 parent ab83eac commit 469f14e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/sol/version.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
#endif
9999

100100
#if defined(SOL_COMPILER_VCXX)
101-
#if defined(SOL_COMPILER_VCXX != 0)
101+
#if (SOL_COMPILER_VCXX != 0)
102102
#define SOL_COMPILER_VCXX_I_ SOL_ON
103103
#else
104104
#define SOL_COMPILER_VCXX_I_ SOL_OFF
@@ -110,7 +110,7 @@
110110
#endif
111111

112112
#if defined(SOL_COMPILER_GCC)
113-
#if defined(SOL_COMPILER_GCC != 0)
113+
#if (SOL_COMPILER_GCC != 0)
114114
#define SOL_COMPILER_GCC_I_ SOL_ON
115115
#else
116116
#define SOL_COMPILER_GCC_I_ SOL_OFF
@@ -122,7 +122,7 @@
122122
#endif
123123

124124
#if defined(SOL_COMPILER_CLANG)
125-
#if defined(SOL_COMPILER_CLANG != 0)
125+
#if (SOL_COMPILER_CLANG != 0)
126126
#define SOL_COMPILER_CLANG_I_ SOL_ON
127127
#else
128128
#define SOL_COMPILER_CLANG_I_ SOL_OFF
@@ -134,7 +134,7 @@
134134
#endif
135135

136136
#if defined(SOL_COMPILER_EDG)
137-
#if defined(SOL_COMPILER_EDG != 0)
137+
#if (SOL_COMPILER_EDG != 0)
138138
#define SOL_COMPILER_EDG_I_ SOL_ON
139139
#else
140140
#define SOL_COMPILER_EDG_I_ SOL_OFF

0 commit comments

Comments
 (0)