diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-31 17:39:47 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-31 17:39:47 +0000 |
commit | bc0c39f85de6b55e431c13c85522abd2d2bccf7d (patch) | |
tree | 6b44ad52e82c02cd6483727a93c47f44ea6227e8 /src | |
parent | 921bfdb40a032720a04d1623b210a28994ee5c14 (diff) | |
download | tor-bc0c39f85de6b55e431c13c85522abd2d2bccf7d.tar.gz tor-bc0c39f85de6b55e431c13c85522abd2d2bccf7d.zip |
r8691@Kushana: nickm | 2006-08-31 13:30:46 -0400
Fix bug 327 (part 1): Use correct macro to test for GCC 3 or later.
svn:r8309
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 8511cb2cdf..a4f52040a0 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -90,7 +90,7 @@ extern INLINE double U64_TO_DBL(uint64_t x) { #endif /* GCC has several useful attributes. */ -#ifdef __GNUC__ && __GNUC_MAJOR__ >= 3 +#if defined(__GNUC__) && __GNUC__ >= 3 #define ATTR_NORETURN __attribute__((noreturn)) #define ATTR_PURE __attribute__((pure)) #define ATTR_MALLOC __attribute__((malloc)) |