[PATCH] D25059: [libc++] Add missing locale aliases

Shoaib Meenai via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 19:37:45 PDT 2016

smeenai created this revision.
smeenai added reviewers: compnerd, EricWF, mclow.lists.
smeenai added a subscriber: cfe-commits.

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.



Index: include/support/win32/locale_win32.h
--- include/support/win32/locale_win32.h
+++ include/support/win32/locale_win32.h
@@ -43,8 +43,9 @@
 #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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25059.72942.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160929/8b3cbddb/attachment.bin>

More information about the cfe-commits mailing list