diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-01 05:45:36 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-01 05:45:36 +0000 |
commit | 7d4187854f0cac9bfc0efbc105cf61a18420612b (patch) | |
tree | e13a08f7707adf08d26c6adcd62a3be81befadb4 /gdb/defs.h | |
parent | 01fff6e2f4aeb41d6f617bb95ad4df0d9a52ef7f (diff) | |
download | gdb-7d4187854f0cac9bfc0efbc105cf61a18420612b.zip gdb-7d4187854f0cac9bfc0efbc105cf61a18420612b.tar.gz gdb-7d4187854f0cac9bfc0efbc105cf61a18420612b.tar.bz2 |
From 2000-04-28 Andreas Jaeger <aj@suse.de>:
Properly check for GCC version number.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -253,7 +253,7 @@ struct cleanup works everywhere we use it. */ #ifndef ATTR_NORETURN -#if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 7 +#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) #define ATTR_NORETURN __attribute__ ((noreturn)) #else #define ATTR_NORETURN /* nothing */ @@ -261,7 +261,7 @@ struct cleanup #endif #ifndef ATTR_FORMAT -#if defined(__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 4 +#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 4)) #define ATTR_FORMAT(type, x, y) __attribute__ ((format(type, x, y))) #else #define ATTR_FORMAT(type, x, y) /* nothing */ |