]> git.ipfire.org Git - thirdparty/libbsd.git/commit
include: Simplify glibc version dependent macro handling
authorGuillem Jover <guillem@hadrons.org>
Wed, 5 Oct 2022 00:05:46 +0000 (02:05 +0200)
committerGuillem Jover <guillem@hadrons.org>
Wed, 5 Oct 2022 10:12:34 +0000 (12:12 +0200)
commit2f9eddc277187e25167331ae3bde4a491fd87fa2
tree9339127ccfdec729c945e3252bd7d6d095fb9c67
parent28298ac0372f320174eb591e0e2879abcc568521
include: Simplify glibc version dependent macro handling

We test once whether __GLIBC__ is not defined, so we do not need to test
whether it is on the OR branch afterwards. We decouple the glibc version
restriction check from the _*_SOURCE variable, as that contains an
implicit opposite version check.
include/bsd/stdlib.h
include/bsd/string.h