aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2021-03-23 22:02:26 +0200
committerMartin Storsjö <martin@martin.st>2021-03-24 23:29:59 +0200
commit675401e04c0687693c3b869410ed575387e7d8d6 (patch)
tree9720f91e5d02c47c739c6e39cf11232bb50f8daa /clang/lib/Frontend/CompilerInvocation.cpp
parent39f3e9a9e07db547b8daac67155abf3a56b34181 (diff)
downloadllvm-675401e04c0687693c3b869410ed575387e7d8d6.zip
llvm-675401e04c0687693c3b869410ed575387e7d8d6.tar.gz
llvm-675401e04c0687693c3b869410ed575387e7d8d6.tar.bz2
[libcxx] Avoid pulling in xlocinfo.h in public headers
Including xlocinfo.h is a bit of a layering violation; locale.h is the C library header we should use, while xlocinfo.h is essentially part of the MS C++ library. Including xlocinfo.h brings in yvals.h, which brings in yvals_core.h, which defines the MS STL's version support macros, overriding what libc++'s <version> had defined. Instead just include locale.h, and provide the few defines we need for locale categories manually. Differential Revision: https://reviews.llvm.org/D99213
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions