Merge pull request #202 from ecatmur/clang-cc17

Fix C++17 detection for clang
This commit is contained in:
Gregory Popovitch
2023-06-28 15:47:56 -04:00
committed by GitHub
+2 -1
View File
@@ -120,7 +120,8 @@
#define PHMAP_HAVE_BUILTIN(x) 0 #define PHMAP_HAVE_BUILTIN(x) 0
#endif #endif
#if (!defined(__GNUC__) || __GNUC__ >= 5) && ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) #if (!defined(__GNUC__) || defined(__clang__) || __GNUC__ >= 5) && \
((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
#define PHMAP_HAVE_CC17 1 #define PHMAP_HAVE_CC17 1
#else #else
#define PHMAP_HAVE_CC17 0 #define PHMAP_HAVE_CC17 0