summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-29 21:59:20 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-29 21:59:20 +0000
commitfee33d2ff1f132f02f35501f694227dea4add215 (patch)
tree417f7f2870e8e542f3d3a00ace1e4eb6a6e93e82
parent122c7a8e5de606d7c7253d623fb03aad1da7d7d0 (diff)
downloadtor-fee33d2ff1f132f02f35501f694227dea4add215.tar.gz
tor-fee33d2ff1f132f02f35501f694227dea4add215.zip
r8682@Kushana: nickm | 2006-08-29 17:58:59 -0400
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3. svn:r8303
-rw-r--r--src/common/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index e4430c6a51..8511cb2cdf 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__
+#ifdef __GNUC__ && __GNUC_MAJOR__ >= 3
#define ATTR_NORETURN __attribute__((noreturn))
#define ATTR_PURE __attribute__((pure))
#define ATTR_MALLOC __attribute__((malloc))