llvm-project/clang/lib/Headers
Nico Weber 272bcf6768 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.

llvm-svn: 207606
2014-04-30 04:35:09 +00:00
..
CMakeLists.txt Rename lib/Headers/module.map to module.modulemap 2014-04-17 00:52:48 +00:00
Intrin.h Intrin.h: remove __rdtsc and __rdtscp declarations 2014-04-24 18:40:06 +00:00
Makefile Rename lib/Headers/module.map to module.modulemap 2014-04-17 00:52:48 +00:00
__wmmintrin_aes.h
__wmmintrin_pclmul.h
altivec.h PR15480: fixed second parameter types of vec_lde, vec_lvebx, vec_lvehx, and vec_lvewx according to AltiVec Programming Interface Manual 2013-03-10 16:25:43 +00:00
ammintrin.h
avx2intrin.h Fix argument types of some AVX2 intrinsics. 2013-09-23 23:52:04 +00:00
avxintrin.h Intrinsics: fix extract & insert when index is out of bound. 2013-10-23 20:33:14 +00:00
bmi2intrin.h
bmiintrin.h
cpuid.h Add bit_FXSAVE as an alias for bit_FXSR, for gcc compat. 2013-12-16 17:54:57 +00:00
emmintrin.h Fix a SSE2 intrinsics typo 2013-11-23 22:11:57 +00:00
f16cintrin.h Remove some stray underscores from copyright block. Fix first line length to match length of the one after the copyright block. 2013-09-27 03:57:18 +00:00
float.h Remove a broken attempt to cope with someone #undef'ing __has_include_next. 2014-02-19 22:53:42 +00:00
fma4intrin.h
fmaintrin.h
ia32intrin.h [X86] Add Clang support for intrinsics __rdtsc and __rdtscp. 2014-04-24 18:26:35 +00:00
immintrin.h The wmmintrin.h header includes two different sub-headers: one for AES support 2014-03-04 18:26:12 +00:00
iso646.h
limits.h Fix two pedantic issues with our builtin headers. The __STDC_VERSION__ 2014-02-19 23:38:18 +00:00
lzcntintrin.h
mm3dnow.h Add PRFCHW intrinsic support 2013-03-26 17:52:08 +00:00
mm_malloc.h
mmintrin.h
module.modulemap Rename lib/Headers/module.map to module.modulemap 2014-04-17 00:52:48 +00:00
nmmintrin.h
pmmintrin.h
popcntintrin.h
prfchwintrin.h Add include guards to prfchwintrin.h. 2013-05-09 15:07:39 +00:00
rdseedintrin.h Add missing include guards into headers in lib/Headers. While it may appear 2013-07-14 05:41:45 +00:00
rtmintrin.h Add missing include guards into headers in lib/Headers. While it may appear 2013-07-14 05:41:45 +00:00
shaintrin.h Fix ifdef macro missed in previous commit 2013-09-19 14:07:14 +00:00
smmintrin.h Intrinsics: fix extract & insert when index is out of bound. 2013-10-23 20:33:14 +00:00
stdalign.h libstdc++'s <cstdalign> #includes <stdalign.h> and expects it to guard against 2013-02-21 02:17:58 +00:00
stdarg.h Fix two pedantic issues with our builtin headers. The __STDC_VERSION__ 2014-02-19 23:38:18 +00:00
stdbool.h
stddef.h Let stddef.h respect __need_{wchar_t, size_t, NULL, ptrdiff_t, wint_t}. 2014-04-30 04:35:09 +00:00
stdint.h Remove a broken attempt to cope with someone #undef'ing __has_include_next. 2014-02-19 22:53:42 +00:00
stdnoreturn.h Parsing support for C11's _Noreturn keyword. No semantics yet. 2013-01-17 22:16:11 +00:00
tbmintrin.h Use logical/arithmetic operations instead of builtins in tbmintrin.h. This way we can remove the intrinsic support from the backend. 2013-10-05 17:08:42 +00:00
tgmath.h Fix the return type of the complex creal functions. Patch by YunZhong Gao, modified to use _Static_assert and to check __STDC_HOSTED__ by me. 2013-05-09 17:41:19 +00:00
tmmintrin.h
unwind.h Provide inline definitions of _Unwind_GetIP etc. for ARM in unwind.h 2013-09-25 22:34:03 +00:00
varargs.h
wmmintrin.h
x86intrin.h Implement __readeflags and __writeeflags intrinsics 2014-03-04 03:03:03 +00:00
xmmintrin.h [_mm_prefetch] Returning previously deleted comment. 2014-02-22 00:47:24 +00:00
xopintrin.h xopintrin.h: Add wrappers for all flavors of _mm_com. 2013-05-09 15:07:46 +00:00