summaryrefslogtreecommitdiffstats
path: root/libcxx/include/support/win32
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-09-29 13:33:15 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-09-29 13:33:15 +0000
commit0c06e58faef3b6b430f25cfcba1fa3aeb36bdb4b (patch)
treefdc95fe598c6bdc931362fd588e177d4a088e43c /libcxx/include/support/win32
parentf1e8b34f6c709fd54cee25efb3c59bc4a7c643fa (diff)
downloadbcm5719-llvm-0c06e58faef3b6b430f25cfcba1fa3aeb36bdb4b.tar.gz
bcm5719-llvm-0c06e58faef3b6b430f25cfcba1fa3aeb36bdb4b.zip
Windows patch work by Ruben Van Boxem
llvm-svn: 140781
Diffstat (limited to 'libcxx/include/support/win32')
-rw-r--r--libcxx/include/support/win32/locale.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/include/support/win32/locale.h b/libcxx/include/support/win32/locale.h
index dd56a049020..d640be137b5 100644
--- a/libcxx/include/support/win32/locale.h
+++ b/libcxx/include/support/win32/locale.h
@@ -11,6 +11,9 @@
#ifndef _LIBCPP_SUPPORT_WIN32_LOCALE_H
#define _LIBCPP_SUPPORT_WIN32_LOCALE_H
+// ctype mask table defined in msvcrt.dll
+extern "C" unsigned short __declspec(dllimport) _ctype[];
+
#include "support/win32/support.h"
#include <memory>
#include <xlocinfo.h> // _locale_t
@@ -62,6 +65,8 @@ decltype(MB_CUR_MAX) MB_CUR_MAX_L( locale_t __l )
#define strtoull_l _strtoui64_l
// FIXME: current msvcrt does not know about long double
#define strtold_l _strtod_l
+#define islower_l _islower_l
+#define isupper_l _isupper_l
#define isdigit_l _isdigit_l
#define isxdigit_l _isxdigit_l
#define strcoll_l _strcoll_l
OpenPOWER on IntegriCloud