]> granicus.if.org Git - clang/commit
Let stddef.h redefine NULL if __need_NULL is set, as needed by glibc, PR12997.
authorNico Weber <nicolasweber@gmx.de>
Tue, 29 Apr 2014 01:19:21 +0000 (01:19 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 29 Apr 2014 01:19:21 +0000 (01:19 +0000)
commit6b21c4350c8ad7aecf499ade331d147f9927ed64
tree1bcc747b83cdb105bd77b69fa7734ee3cb35f1ce
parentbc9e1b2ad4ecb054e8a9ad8ddb4096411d3d5075
Let stddef.h redefine NULL if __need_NULL is set, as needed by glibc, PR12997.

See the bug and the cfe-commits thread "[patch] Let stddef.h redefine NULL if
__need_NULL is set" for discussion.

Fixes PR12997 and is similar to the __need_wint_t bits already in this file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207482 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/stddef.h
test/Headers/needsnull.cpp [new file with mode: 0644]