OSDN Git Service

Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).
authorElliott Hughes <enh@google.com>
Mon, 18 Aug 2014 23:04:03 +0000 (16:04 -0700)
committerElliott Hughes <enh@google.com>
Mon, 18 Aug 2014 23:04:03 +0000 (16:04 -0700)
commit5f5cc45cf0e027f6ca503dc229a4890fc7164b66
tree36bebf629f486d24d8287e7a735662b0269044a6
parent205cc41556d44b104a21bc6839b7ea44f72df9ba
Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).

<features.h> is supposed to take user-settable stuff like _GNU_SOURCE
and _BSD_SOURCE and turn them into __USE_GNU and __USE_BSD for use in
the C library headers. Instead, bionic used to unconditionally define
_BSD_SOURCE and _GNU_SOURCE, and then test _GNU_SOURCE in the header
files (which makes no sense whatsoever).

Bug: 14659579
Change-Id: Ice4cf21a364ea2e559071dc8329e995277d5b987
libc/bionic/clone.cpp
libc/include/features.h
libc/include/sched.h
libc/include/unistd.h
libm/include/math.h
libm/sincos.c
tests/math_sincos_test.cpp