about summary refs log tree commit diff
path: root/include/endian.h
Commit message (Collapse)AuthorAgeFilesLines
* default features: make musl usable without feature test macrosRich Felker2012-09-071-3/+1
| | | | | | | | | | 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.
* avoid "inline" in public headers for strict c89 compatibilityRich Felker2012-09-021-12/+7
| | | | | | | | | while musl itself requires a c99 compiler, some applications insist on being compiled with c89 compilers, and use of "inline" in the headers was breaking them. much of this had been avoided already by just skipping the inline keyword in pre-c99 compilers or modes, but this new unified solution is cleaner and may/should result in better code generation in the default gcc configuration.
* take byte order from gcc if gcc has defined itRich Felker2012-05-061-0/+4
| | | | | | | this only works with gcc 4.6 and later, but it allows us to support non-default endianness on archs like arm, mips, ppc, etc. that can do both without having separate header sets for both variants, and it saves one #include even on fixed-endianness archs like x86.
* uglify headers for the sake of junk that compiles with gcc -std=c89/-ansiRich Felker2012-05-031-3/+12
|
* fix breakage in endian.hRich Felker2012-04-221-1/+1
|
* add some ugly byte swapping cruft in endian.hRich Felker2012-04-221-0/+59
|
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+17