[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8303: Fix compilation on GCC2 by disabling fun attributes unless _ (in tor/trunk: . src/common)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r8303: Fix compilation on GCC2 by disabling fun attributes unless _ (in tor/trunk: . src/common)
- From: nickm@xxxxxxxx
- Date: Tue, 29 Aug 2006 17:59:21 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 29 Aug 2006 17:59:27 -0400
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: nickm
Date: 2006-08-29 17:59:20 -0400 (Tue, 29 Aug 2006)
New Revision: 8303
Modified:
tor/trunk/
tor/trunk/src/common/compat.h
Log:
r8682@Kushana: nickm | 2006-08-29 17:58:59 -0400
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r8682] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/src/common/compat.h
===================================================================
--- tor/trunk/src/common/compat.h 2006-08-29 20:44:17 UTC (rev 8302)
+++ tor/trunk/src/common/compat.h 2006-08-29 21:59:20 UTC (rev 8303)
@@ -90,7 +90,7 @@
#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))