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 | 707cd574314112fab6e00e51a8c681a6392c0156 (patch) | |
tree | 105f9016e2a317445ba841d9ab2f0467ce502e4e /gdb/defs.h | |
parent | 3a6c8f4a37238f3d7e3cef0e9730a7af7f063d5b (diff) | |
download | gdb-707cd574314112fab6e00e51a8c681a6392c0156.tar.gz |
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
diff --git a/gdb/defs.h b/gdb/defs.h index ff23f609d8d..9e6218ac47b 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -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 */ |