summaryrefslogtreecommitdiff
path: root/include/__locale
diff options
context:
space:
mode:
authorMarshall Clow <mclow@qualcomm.com>2013-03-18 17:04:29 +0000
committerMarshall Clow <mclow@qualcomm.com>2013-03-18 17:04:29 +0000
commita22d2addb1287a7642bfcb211ae2cb21890d1cbd (patch)
tree549b4e91db9aedc298aba299d2a07ee42be08d38 /include/__locale
parente33c2d1926f49221c9d72a353d797d135a810d77 (diff)
Removed raw references to _WIN32; now just check to see if it is defined.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@177291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__locale')
-rw-r--r--include/__locale4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/__locale b/include/__locale
index cfa3fda7a..1c093f69a 100644
--- a/include/__locale
+++ b/include/__locale
@@ -19,7 +19,7 @@
#include <cstdint>
#include <cctype>
#include <locale.h>
-#if _WIN32
+#ifdef _WIN32
# include <support/win32/locale_win32.h>
#elif (__GLIBC__ || __APPLE__ || __FreeBSD__ || __sun__)
# include <xlocale.h>
@@ -327,7 +327,7 @@ public:
static const mask punct = _ISpunct;
static const mask xdigit = _ISxdigit;
static const mask blank = _ISblank;
-#elif _WIN32
+#elif defined(_WIN32)
typedef unsigned short mask;
static const mask space = _SPACE;
static const mask print = _BLANK|_PUNCT|_ALPHA|_DIGIT;