Check-in [448a1f6fa3]
Overview
Comment:Updated to work with MUSL GCC-ism
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 448a1f6fa3764e3bd1f9896c35134d3de7432c7a
User & Date: rkeene on 2014-05-22 05:11:18
Other Links: manifest | tags
Context
2014-05-22
05:12
tcc4tcl 0.13 check-in: bdab5f40e3 user: rkeene tags: trunk, 0.13
05:11
Updated to work with MUSL GCC-ism check-in: 448a1f6fa3 user: rkeene tags: trunk
04:45
tcc4tcl 0.12 check-in: 5fb5de4c85 user: rkeene tags: trunk, 0.12
Changes

Modified patch-headers.sh from [3d4b689176] to [c338a964f0].

25
26
27
28
29
30
31







25
26
27
28
29
30
31
32
33
34
35
36
37
38







+
+
+
+
+
+
+
	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