summaryrefslogtreecommitdiff
path: root/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-04-30 04:35:09 +0000
committerNico Weber <nicolasweber@gmx.de>2014-04-30 04:35:09 +0000
commit7933ecef1047af471f6116acb9ec052cec9e9335 (patch)
tree47d2f27d977b25889e0cee7e31a8acb00265f931 /lib/Serialization/ModuleManager.cpp
parent810876919a16f5c2f0f18746b8dd9581746db599 (diff)
downloadclang-7933ecef1047af471f6116acb9ec052cec9e9335.tar.gz
clang-7933ecef1047af471f6116acb9ec052cec9e9335.tar.bz2
clang-7933ecef1047af471f6116acb9ec052cec9e9335.tar.xz
Let stddef.h respect __need_{wchar_t, size_t, NULL, ptrdiff_t, wint_t}.
glibc expects that stddef.h only defines a single thing if either of these defines is set. For example, before this change, a C file containing #include <stdlib.h> int ptrdiff_t = 0; would compile with gcc but not with clang. Now it compiles with clang too. This also fixes PR12997, where older versions of the Linux headers would define NULL incorrectly, and glibc would define __need_NULL and expect stddef.h to redefine NULL with the correct definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions