Check-in [f9d0cb87bf]
Overview
Comment:Updated to remove warnings from cdefs.h (Mac OS X)
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f9d0cb87bf071d6b848b442404456d6a5c892d37
User & Date: rkeene on 2014-06-21 18:10:08
Other Links: manifest | tags
Context
2014-06-21
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
18:06
Updated to use actual call to Tcl_InitStubs() check-in: 273c2a2e9a user: rkeene tags: trunk
Changes

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

     4      4   
     5      5   cd "${headers_dir}" || exit 1
     6      6   
     7      7   # Android header fix-ups
     8      8   ## Do not abort compilation at header include time
     9      9   if grep '^#error "No function renaming possible"' sys/cdefs.h >/dev/null 2>/dev/null; then
    10     10   	awk '
    11         -/#error "No function renaming possible"/{
           11  +/^#error "No function renaming possible"/{
    12     12   	print "#define __RENAME(x) no renaming on this platform"
    13     13   	next
    14     14   }
    15     15   {print}
           16  +
           17  +/^#warning /{ next }
    16     18   	' sys/cdefs.h > sys/cdefs.h.new
    17     19   	cat sys/cdefs.h.new > sys/cdefs.h
    18     20   	rm -f sys/cdefs.h.new
    19     21   fi
    20     22   
    21     23   ## loff_t depends on __GNUC__ for some reason
    22     24   if awk -v retval=1 '/__GNUC__/{ getline; if ($0 ~ /__kernel_loff_t/) {retval=0} } END{exit retval}' asm/posix_types.h >/dev/null 2>/dev/null; then