Include corecrt.h in stddef.h and vcruntime.h in stdarg.h to improve MS
authorMike Rice <michael.p.rice@intel.com>
Wed, 8 May 2019 17:15:21 +0000 (17:15 +0000)
committerMike Rice <michael.p.rice@intel.com>
Wed, 8 May 2019 17:15:21 +0000 (17:15 +0000)
commita0933bd8ec1515167ea653f7ee788b8bbde27d51
treee1b73dcacfdce3d28fd9b6929fffc9d1c7979ec2
parentf31eba649422082783a19bb6b373f31f10f55de9
Include corecrt.h in stddef.h and vcruntime.h in stdarg.h to improve MS
compatibility.  This allows some applications developed with MSVC to
compile with clang without any extra changes.

Fixes: llvm.org/PR40789

Differential Revision: https://reviews.llvm.org/D61646

llvm-svn: 360271
clang/lib/Headers/stdarg.h
clang/lib/Headers/stddef.h
clang/test/Headers/Inputs/ms-crt/corecrt.h [new file with mode: 0644]
clang/test/Headers/Inputs/ms-crt/vcruntime.h [new file with mode: 0644]
clang/test/Headers/c11.c
clang/test/Headers/ms-additional-includes.cpp [new file with mode: 0644]
clang/test/Headers/ms-null-ms-header-vs-stddef.cpp