File tree Expand file tree Collapse file tree 9 files changed +14
-15
lines changed Expand file tree Collapse file tree 9 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 31
31
32
32
#ifndef __attribute__
33
33
/* This feature is available in gcc versions 2.5 and later. */
34
- # if __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 5 ) || __STRICT_ANSI__
34
+ # if ! __GNUC_PREREQ ( 2 , 5 ) || __STRICT_ANSI__
35
35
# define __attribute__ (Spec ) /* empty */
36
36
# endif
37
37
/* The __-protected variants of `format' and `printf' attributes
38
38
are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
39
- # if __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 7 ) || __STRICT_ANSI__
39
+ # if ! __GNUC_PREREQ ( 2 , 7 ) || __STRICT_ANSI__
40
40
# define __format__ format
41
41
# define __printf__ printf
42
42
# endif
Original file line number Diff line number Diff line change 42
42
43
43
#ifndef __attribute__
44
44
/* This feature is available in gcc versions 2.5 and later. */
45
- # if __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 5 ) || __STRICT_ANSI__
45
+ # if ! __GNUC_PREREQ ( 2 , 5 ) || __STRICT_ANSI__
46
46
# define __attribute__ (Spec ) /* empty */
47
47
# endif
48
48
/* The __-protected variants of `format' and `printf' attributes
49
49
are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
50
- # if __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 7 ) || __STRICT_ANSI__
50
+ # if ! __GNUC_PREREQ ( 2 , 7 ) || __STRICT_ANSI__
51
51
# define __format__ format
52
52
# define __printf__ printf
53
53
# endif
56
56
/* GCC 2.95 and later have "__restrict"; C99 compilers have
57
57
"restrict", and "configure" may have defined "restrict". */
58
58
#ifndef __restrict
59
- # if ! ( 2 < __GNUC__ || ( 2 == __GNUC__ && 95 <= __GNUC_MINOR__ ) )
59
+ # if !__GNUC_PREREQ ( 2 , 95 )
60
60
# if defined restrict || 199901L <= __STDC_VERSION__
61
61
# define __restrict restrict
62
62
# else
Original file line number Diff line number Diff line change @@ -96,8 +96,7 @@ __END_DECLS
96
96
/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
97
97
which contains the name of the function currently being defined.
98
98
This is broken in G++ before version 2.6. */
99
- # if (!defined __GNUC__ || __GNUC__ < 2 || \
100
- (__GNUC__ == 2 && __GNUC_MINOR__ < (defined __cplusplus ? 6 : 4 )))
99
+ # if (!(defined(__cplusplus ) ? __GNUC_PREREQ (2 ,6 ) : __GNUC_PREREQ (2 ,4 )))
101
100
# define __ASSERT_FUNCTION ((const char *) 0)
102
101
# else
103
102
# define __ASSERT_FUNCTION __PRETTY_FUNCTION__
Original file line number Diff line number Diff line change 23
23
24
24
#ifndef __attribute__
25
25
/* This feature is available in gcc versions 2.5 and later. */
26
- # if __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 5 ) || __STRICT_ANSI__
26
+ # if ! __GNUC_PREREQ ( 2 , 5 ) || __STRICT_ANSI__
27
27
# define __attribute__ (Spec ) /* empty */
28
28
# endif
29
29
/* The __-protected variants of `format' and `printf' attributes
30
30
are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
31
- # if __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 7 )
31
+ # if ! __GNUC_PREREQ ( 2 , 7 ) || __STRICT_ANSI__
32
32
# define __format__ format
33
33
# define __printf__ printf
34
34
# endif
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ extern int obstack_exit_failure;
346
346
/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
347
347
does not implement __extension__. But that compiler doesn't define
348
348
__GNUC_MINOR__. */
349
- # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__ )
349
+ # if !__GNUC_PREREQ(2,0 )
350
350
# define __extension__
351
351
# endif
352
352
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ typedef unsigned int uint;
131
131
132
132
/* These size-specific names are used by some of the inet code. */
133
133
134
- #if !defined __GNUC__ || __GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 7 )
134
+ #if !__GNUC_PREREQ ( 2 , 7 )
135
135
136
136
/* These types are defined by the ISO C 9x header <inttypes.h>. */
137
137
# ifndef __int8_t_defined
Original file line number Diff line number Diff line change 175
175
176
176
/* Currently disabled since not supported by gcc for MiNT. FIXME!!! */
177
177
#if (0 && !defined __ASSEMBLER__ && \
178
- (__GNUC__ > 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ >= 7 )))
178
+ (__GNUC_PREREQ ( 2 , 7 )))
179
179
/* GCC 2.7 and later has special syntax for weak symbols and aliases.
180
180
Using that is better when possible, because the compiler and assembler
181
181
are better clued in to what we are doing. */
Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ extern USItype __udiv_qrnnd ();
656
656
#endif /* __m88000__ */
657
657
658
658
#if defined (__mips__ ) && W_TYPE_SIZE == 32
659
- #if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
659
+ #if __GNUC_PREREQ ( 2 , 7 )
660
660
#define umul_ppmm (w1 , w0 , u , v ) \
661
661
__asm__ ("multu %2,%3" \
662
662
: "=l" ((USItype)(w0)), \
@@ -678,7 +678,7 @@ extern USItype __udiv_qrnnd ();
678
678
#endif /* __mips__ */
679
679
680
680
#if (defined (__mips ) && __mips >= 3 ) && W_TYPE_SIZE == 64
681
- #if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
681
+ #if __GNUC_PREREQ ( 2 , 7 )
682
682
#define umul_ppmm (w1 , w0 , u , v ) \
683
683
__asm__ ("dmultu %2,%3" \
684
684
: "=l" ((UDItype)(w0)), \
Original file line number Diff line number Diff line change 130
130
# define STRTOL_LONG_MIN LONG_LONG_MIN
131
131
# define STRTOL_LONG_MAX LONG_LONG_MAX
132
132
# define STRTOL_ULONG_MAX ULONG_LONG_MAX
133
- # if __GNUC__ == 2 && __GNUC_MINOR__ < 7
133
+ # if defined( __GNUC__ ) && ! __GNUC_PREREQ ( 2 , 7 )
134
134
/* Work around gcc bug with using this constant. */
135
135
static const unsigned long long int maxquad = ULONG_LONG_MAX ;
136
136
# undef STRTOL_ULONG_MAX
You can’t perform that action at this time.
0 commit comments