summaryrefslogtreecommitdiff
path: root/include/__locale
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-03 21:53:51 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-03 21:53:51 +0000
commite34f9d5ef356cced5f05d9a06a7e4de9442ddfc7 (patch)
treef01cd92dc669f4897631787fd497209963e9df8c /include/__locale
parente262e7b914f3ab3180db531a78c870906e21efd0 (diff)
clean up use of _WIN32
Replace the use of _WIN32 in libc++. Replace most use with a C runtime check _LIBCPP_MSVCRT or the new _LIBCPP_WIN32 to indicate that we are using the Win32 API. Use a new _LIBCPP_WCHAR_IS_UCS2 to indicate that we are on an environment that has a short wchar_t. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__locale')
-rw-r--r--include/__locale2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/__locale b/include/__locale
index 535ee165f..3f29bc5e9 100644
--- a/include/__locale
+++ b/include/__locale
@@ -342,7 +342,7 @@ public:
static const mask punct = _ISpunct;
static const mask xdigit = _ISxdigit;
static const mask blank = _ISblank;
-#elif defined(_WIN32)
+#elif defined(_LIBCPP_MSVCRT)
typedef unsigned short mask;
static const mask space = _SPACE;
static const mask print = _BLANK|_PUNCT|_ALPHA|_DIGIT;