[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8309: Fix bug 327 (part 1): Use correct macro to test for GCC 3 or (in tor/trunk: . src/common)



Author: nickm
Date: 2006-08-31 13:39:47 -0400 (Thu, 31 Aug 2006)
New Revision: 8309

Modified:
   tor/trunk/
   tor/trunk/src/common/compat.h
Log:
 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.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r8691] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/common/compat.h
===================================================================
--- tor/trunk/src/common/compat.h	2006-08-30 23:34:56 UTC (rev 8308)
+++ tor/trunk/src/common/compat.h	2006-08-31 17:39:47 UTC (rev 8309)
@@ -90,7 +90,7 @@
 #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))