mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Avoid non-standard preprocessor construct.
Thanks to Jouk Jansen.
This commit is contained in:
parent
0deb1bb60a
commit
4c3630ec41
1 changed files with 7 additions and 4 deletions
|
@ -49,10 +49,13 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#define TUKLIB_GNUC_REQ(major, minor) \
|
||||
(defined(__GNUC__) && defined(__GNUC_MINOR__) \
|
||||
&& ((__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)) \
|
||||
|| __GNUC__ > (major)))
|
||||
#if defined(__GNUC__) && defined(__GNUC_MINOR__)
|
||||
# define TUKLIB_GNUC_REQ(major, minor) \
|
||||
((__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)) \
|
||||
|| __GNUC__ > (major))
|
||||
#else
|
||||
# define TUKLIB_GNUC_REQ(major, minor) 0
|
||||
#endif
|
||||
|
||||
#if TUKLIB_GNUC_REQ(2, 5)
|
||||
# define tuklib_attr_noreturn __attribute__((__noreturn__))
|
||||
|
|
Loading…
Reference in a new issue