This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Respect Windows Store app CRT restrictions
ClosedPublic

Authored by smeenai on Apr 5 2017, 6:02 PM.

Details

Summary

Some CRT APIs are unavailable for Windows Store apps [1]. Detect when
we're targeting the Windows Store and don't try to refer to non-existent
CRT functions in that case. (This would otherwise lead to a compile
error when using the libc++ headers and compiling for Windows Store.)

[1] https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps

Diff Detail

Repository
rL LLVM

Event Timeline

smeenai created this revision.Apr 5 2017, 6:02 PM
compnerd accepted this revision.Apr 5 2017, 9:15 PM
This revision is now accepted and ready to land.Apr 5 2017, 9:15 PM
This revision was automatically updated to reflect the committed changes.