]> git.ipfire.org Git - thirdparty/glibc.git/commit
Don’t conditionalize declarations of ldiv_t, lldiv_t, __gwchar_t.
authorZack Weinberg <zackw@panix.com>
Sun, 10 Mar 2019 02:18:56 +0000 (21:18 -0500)
committerZack Weinberg <zackw@panix.com>
Wed, 8 Jan 2020 17:56:33 +0000 (12:56 -0500)
commit795eb42e060039b6d624b7e613d8c334ac70580c
tree988877a2a4a22a6bfc9604f8688a868e34cbfca9
parentd5ebebf969165c51e6a9fcff3a21b6591269eaea
Don’t conditionalize declarations of ldiv_t, lldiv_t, __gwchar_t.

The declarations of ldiv_t, lldiv_t, and __gwchar_t are all wrapped in
__foo_t_defined conditionals, despite there being only one header in
glibc that declares them.  I checked codesearch.debian.net and only
found one other program that refers to the __foo_t_defined
conditionals: u-boot provides its own definition of ldiv_t if
__ldiv_t_defined is not defined by stdlib.h.  I conclude that the
conditionals are not necessary, but the definitions of
__ldiv_t_defined and __lldiv_t_defined should be preserved.

* stdlib/inttypes.h: Unconditionally define __gwchar_t.
        Don’t define ____gwchar_t_defined.
        * stdlib/stdlib.h: Unconditionally define ldiv_t.
        Condition lldiv_t only on __USE_ISOC99.
stdlib/inttypes.h
stdlib/stdlib.h