summaryrefslogtreecommitdiff
path: root/include/endian.h
AgeCommit message (Collapse)AuthorLines
2012-09-02avoid "inline" in public headers for strict c89 compatibilityRich Felker-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.
2012-05-06take byte order from gcc if gcc has defined itRich Felker-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.
2012-05-03uglify headers for the sake of junk that compiles with gcc -std=c89/-ansiRich Felker-3/+12
2012-04-22fix breakage in endian.hRich Felker-1/+1
2012-04-22add some ugly byte swapping cruft in endian.hRich Felker-0/+59
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+17