Check-in [bc97582608]
Overview
Comment:Updated to ignore clang limits.h
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bc9758260816c4a6fc5aa3c03a6d5577a69e6f7c
User & Date: rkeene on 2014-06-21 18:20:05
Other Links: manifest | tags
Context
2014-06-21
18:26
Fixed typo check-in: d680a4ffbf user: rkeene tags: trunk
18:20
Updated to ignore clang limits.h check-in: bc97582608 user: rkeene tags: trunk
18:10
Updated to remove warnings from cdefs.h (Mac OS X) check-in: f9d0cb87bf user: rkeene tags: trunk
Changes

Modified patch-headers.sh from [9b3f679ed5] to [c30cc4c3b3].

27
28
29
30
31
32
33




34
35
36
37
38
39
40
	rm -f asm/posix_types.h.new
fi

# Busted wrapper fix-up
if grep '__STDC_HOSTED__' stdint.h >/dev/null 2>/dev/null && grep '_GCC_WRAP_STDINT_H' stdint.h >/dev/null 2>/dev/null; then
	echo '#include_next <stdint.h>' > stdint.h
fi





# MUSL libc expects GCC
if grep ' __builtin_va_list ' bits/alltypes.h >/dev/null 2>/dev/null; then
	sed 's@ __builtin_va_list @ char * @' bits/alltypes.h > bits/alltypes.h.new
	cat bits/alltypes.h.new > bits/alltypes.h
	rm -f bits/alltypes.h.new
fi







>
>
>
>







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
	rm -f asm/posix_types.h.new
fi

# Busted wrapper fix-up
if grep '__STDC_HOSTED__' stdint.h >/dev/null 2>/dev/null && grep '_GCC_WRAP_STDINT_H' stdint.h >/dev/null 2>/dev/null; then
	echo '#include_next <stdint.h>' > stdint.h
fi

if grep '__CLANG_LIMITS_H' limits.h >/dev/null 2>/dev/null; then
	echo '#include_next <limits.h>' > limits.h
fi

# MUSL libc expects GCC
if grep ' __builtin_va_list ' bits/alltypes.h >/dev/null 2>/dev/null; then
	sed 's@ __builtin_va_list @ char * @' bits/alltypes.h > bits/alltypes.h.new
	cat bits/alltypes.h.new > bits/alltypes.h
	rm -f bits/alltypes.h.new
fi