Skip to content

Commit

Permalink
Fix macro COMPILER_SUPPORTS_CPP_17
Browse files Browse the repository at this point in the history
  • Loading branch information
kenneth-jia committed Aug 24, 2021
1 parent 7ac3828 commit 6c2d2a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/kafka/Project.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@

#if defined(WIN32) && !defined(NOMINMAX)
#define NOMINMAX
#endif

#define COMPILER_SUPPORTS_CPP_17 ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))

#if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
#define COMPILER_SUPPORTS_CPP_17 1
#else
#define COMPILER_SUPPORTS_CPP_17 0
#endif

0 comments on commit 6c2d2a8

Please sign in to comment.