diff options
author | Sami Kerola | 2018-12-02 17:28:22 +0100 |
---|---|---|
committer | Sami Kerola | 2018-12-02 17:28:22 +0100 |
commit | 3ccbdf7aa494ce854d9f346ab6bd6f51b952ff32 (patch) | |
tree | 53457e1bccb592aab54c9ad3662d9239e396ae1c /include | |
parent | tests: make lsns-netnsid portable (diff) | |
download | kernel-qcow2-util-linux-3ccbdf7aa494ce854d9f346ab6bd6f51b952ff32.tar.gz kernel-qcow2-util-linux-3ccbdf7aa494ce854d9f346ab6bd6f51b952ff32.tar.xz kernel-qcow2-util-linux-3ccbdf7aa494ce854d9f346ab6bd6f51b952ff32.zip |
include/c: check returns_nonnull function attribute with __GNUC_PREREQ
Karel pointed out previous commit could have been better in github feedback,
so lets use the version check macro instead of compare versions directly.
Previous-commit: f1b327f8d5c8de7bf7fae99e85765d0954a25bac
Reference: https://github.com/karelzak/util-linux/pull/704#issuecomment-432605211
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include')
-rw-r--r-- | include/c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/c.h b/include/c.h index 8b2a2d19a..059fadf0b 100644 --- a/include/c.h +++ b/include/c.h @@ -80,7 +80,7 @@ # endif #endif -#if (__GNUC__ >= 5) || ((__GNUC__ >= 4) && (__GNUC_MINOR__ >= 9)) +#if __GNUC_PREREQ (4, 9) # define __ul_returns_nonnull __attribute__((returns_nonnull)) #else # define __ul_returns_nonnull |