Skip to content

Commit 77cab81

Browse files
authored
Merge pull request #202 from ecatmur/clang-cc17
Fix C++17 detection for clang
2 parents 93201da + 2ac0518 commit 77cab81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parallel_hashmap/phmap_config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@
120120
#define PHMAP_HAVE_BUILTIN(x) 0
121121
#endif
122122

123-
#if (!defined(__GNUC__) || __GNUC__ >= 5) && ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
123+
#if (!defined(__GNUC__) || defined(__clang__) || __GNUC__ >= 5) && \
124+
((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
124125
#define PHMAP_HAVE_CC17 1
125126
#else
126127
#define PHMAP_HAVE_CC17 0

0 commit comments

Comments
 (0)