Explorar o código

r8682@Kushana: nickm | 2006-08-29 17:58:59 -0400
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3.


svn:r8303

Nick Mathewson %!s(int64=19) %!d(string=hai) anos
pai
achega
fee33d2ff1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/compat.h

+ 1 - 1
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))