summaryrefslogtreecommitdiffstats
path: root/libcxx/include/support/win32
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2016-09-29 03:35:41 +0000
committerShoaib Meenai <smeenai@fb.com>2016-09-29 03:35:41 +0000
commitc6f93e389ec6fff44069b9ecac207623418ae277 (patch)
tree2a3212977290cea19555a664335d3cb81a4fc151 /libcxx/include/support/win32
parent0009fef06c436d240aef5b853397168b09908ac1 (diff)
downloadbcm5719-llvm-c6f93e389ec6fff44069b9ecac207623418ae277.tar.gz
bcm5719-llvm-c6f93e389ec6fff44069b9ecac207623418ae277.zip
[libc++] Add missing locale aliases
Add underscore aliases for strtof_l and strtod_l. _strtold_l exists in VS 2013 and above, so fix that definition as a drive-by fix. Differential Revision: https://reviews.llvm.org/D25059 llvm-svn: 282681
Diffstat (limited to 'libcxx/include/support/win32')
-rw-r--r--libcxx/include/support/win32/locale_win32.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/include/support/win32/locale_win32.h b/libcxx/include/support/win32/locale_win32.h
index 4cb6d560095..0f5527e570a 100644
--- a/libcxx/include/support/win32/locale_win32.h
+++ b/libcxx/include/support/win32/locale_win32.h
@@ -43,8 +43,9 @@ decltype(MB_CUR_MAX) MB_CUR_MAX_L( locale_t __l )
#define mbtowc_l _mbtowc_l
#define strtoll_l _strtoi64_l
#define strtoull_l _strtoui64_l
-// FIXME: current msvcrt does not know about long double
-#define strtold_l _strtod_l
+#define strtof_l _strtof_l
+#define strtod_l _strtod_l
+#define strtold_l _strtold_l
inline _LIBCPP_INLINE_VISIBILITY
int
OpenPOWER on IntegriCloud