Skip to content

Commit 6c2d2a8

Browse files
committed
Fix macro COMPILER_SUPPORTS_CPP_17
1 parent 7ac3828 commit 6c2d2a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/kafka/Project.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212

1313
#if defined(WIN32) && !defined(NOMINMAX)
1414
#define NOMINMAX
15+
#endif
1516

16-
#define COMPILER_SUPPORTS_CPP_17 ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
17-
17+
#if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
18+
#define COMPILER_SUPPORTS_CPP_17 1
19+
#else
20+
#define COMPILER_SUPPORTS_CPP_17 0
1821
#endif
1922

0 commit comments

Comments
 (0)