about summary refs log tree commit diff
path: root/include/stropts.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-22 20:58:04 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-22 20:58:04 -0400
commit9578f0530ae9eebfc9928b76f8ab2972131c2dac (patch)
tree3f2aea22d9112b9a43b8557170ca9f9dad1c63be /include/stropts.h
parent3f08154ac494f4739afbc7451f317b2ef1bffbd3 (diff)
downloadmusl-9578f0530ae9eebfc9928b76f8ab2972131c2dac.tar.gz
musl-9578f0530ae9eebfc9928b76f8ab2972131c2dac.tar.xz
musl-9578f0530ae9eebfc9928b76f8ab2972131c2dac.zip
undefine internal-use type macros at the end of alltypes.h
this patch is something of a compromise for a compatibility
regression discovered after the header refactoring: libtiff uses
_Int64 for its own use. this is absolutely wrong, invalid C, and
should not be supported, but it's also frustrating for users when code
that used to work suddenly breaks.

rather than leave the breakage in place or change musl internals to
accommodate broken software, I've found a change that makes the
problem go away and improves musl. by undefining these macros at the
end of alltypes.h, the temptation to use them in other headers is
removed. (for example, I almost used _Int64 in sys/types.h to define
u_int64_t rather than adding it back to alltypes.h.) by confining use
of these macros to alltypes.h, we keep it easy to go back and change
the implementation of alltypes later, if needed.
Diffstat (limited to 'include/stropts.h')
0 files changed, 0 insertions, 0 deletions