default features: make musl usable without feature test macros
authorRich Felker <dalias@aerifal.cx>
Sat, 8 Sep 2012 03:13:55 +0000 (23:13 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 8 Sep 2012 03:13:55 +0000 (23:13 -0400)
commitc1a9658bd19245ff0fb52d3da567815d822fb622
tree36af789c4a0ebc8a1af3c49eab9edb34f5dbf869
parent9f65796c35bd93a1de42752ce8af901acfe4b1a4
default features: make musl usable without feature test macros

the old behavior of exposing nothing except plain ISO C can be
obtained by defining __STRICT_ANSI__ or using a compiler option (such
as -std=c99) that predefines it. the new default featureset is POSIX
with XSI plus _BSD_SOURCE. any explicit feature test macros will
inhibit the default.

installation docs have also been updated to reflect this change.
48 files changed:
INSTALL
include/aio.h
include/assert.h
include/ctype.h
include/dirent.h
include/dlfcn.h
include/endian.h
include/fcntl.h
include/features.h
include/fnmatch.h
include/ftw.h
include/glob.h
include/grp.h
include/limits.h
include/locale.h
include/math.h
include/net/if.h
include/netdb.h
include/netinet/tcp.h
include/pwd.h
include/sched.h
include/search.h
include/setjmp.h
include/signal.h
include/stdio.h
include/stdlib.h
include/string.h
include/sys/ipc.h
include/sys/mman.h
include/sys/resource.h
include/sys/sem.h
include/sys/sendfile.h
include/sys/shm.h
include/sys/stat.h
include/sys/statfs.h
include/sys/statvfs.h
include/sys/time.h
include/sys/types.h
include/sys/uio.h
include/sys/utsname.h
include/sys/wait.h
include/syslog.h
include/termios.h
include/time.h
include/ucontext.h
include/unistd.h
include/wchar.h
include/wctype.h