This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Redirect strftime_l to the locale-ignorant strftime on mingw
ClosedPublic

Authored by mstorsjo on Sep 5 2017, 5:14 AM.

Details

Summary

_strftime_l is only available in the numbered msvcrt versions (starting from msvcr80.dll). In the default configuration, mingw targets the unversioned msvcrt.dll - and there, _strftime_l is not available (not even on windows 10).

If MSVCRT_VERSION is set to a higher value (indicating a non-default target and wanting to link to msvcrXX.dll), use the correct function.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Sep 5 2017, 5:14 AM
This revision is now accepted and ready to land.Sep 5 2017, 3:56 PM
This revision was automatically updated to reflect the committed changes.