]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Correct Clang feature detection
authorAaron Dierking <aarond@fb.com>
Thu, 14 Jun 2018 18:38:31 +0000 (11:38 -0700)
committerGuillem Jover <guillem@hadrons.org>
Mon, 18 Jun 2018 02:31:00 +0000 (04:31 +0200)
commit7cfa2d4530325444fa71c2bdb14e11ba9d4de0b6
treed4db3ab0c27f11345c1539111d14e64c42f4ec66
parent574c7a1365b729343494181f36376d378b54fdea
Correct Clang feature detection

Clang's __GNUC__ and __GNUC_MINOR__ definitions are not reliable and may
not be defined at all when targeting the MSVC ABI. Use feature-checking
macros when possible or check for __clang__.

[guillem@hadrons.org: Update for __ protected keyword change. ]

Signed-off-by: Guillem Jover <guillem@hadrons.org>
include/bsd/sys/cdefs.h
src/arc4random.c