Add support for msvc:/Zc:wchar_t-

This commit is contained in:
Andrew Dean
2021-09-02 12:19:53 -07:00
parent 1f2671ff0a
commit 7976ede849
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -338,6 +338,13 @@
#define PHMAP_INTERNAL_MSVC_2017_DBG_MODE
#endif
// ---------------------------------------------------------------------------
// Checks whether wchar_t is treated as a native type
// (MSVC: /Zc:wchar_t- treats wchar_t as unsigned short)
// ---------------------------------------------------------------------------
#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED)
#define PHMAP_HAS_NATIVE_WCHAR_T
#endif
// -----------------------------------------------------------------------------
// Sanitizer Attributes