summaryrefslogtreecommitdiffstats
path: root/loc2c.h
diff options
context:
space:
mode:
authorfche <fche>2005-12-21 20:53:13 +0000
committerfche <fche>2005-12-21 20:53:13 +0000
commit112b531a1b74547e8575f7a687d617869e86c766 (patch)
treeb9c4cc3f971162db68a7e50ea5f578882249fffb /loc2c.h
parent0dd17aeffbbe7e704cfb297a35a569bbe74aff2d (diff)
downloadsystemtap-steved-112b531a1b74547e8575f7a687d617869e86c766.tar.gz
systemtap-steved-112b531a1b74547e8575f7a687d617869e86c766.tar.xz
systemtap-steved-112b531a1b74547e8575f7a687d617869e86c766.zip
2005-12-21 Frank Ch. Eigler <fche@elastic.org>
* loc2c.h: Add __attribute__ defeating code for g++ 3.3 compatibility.
Diffstat (limited to 'loc2c.h')
-rw-r--r--loc2c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/loc2c.h b/loc2c.h
index 9b0a7868..96cc2568 100644
--- a/loc2c.h
+++ b/loc2c.h
@@ -3,6 +3,10 @@
struct obstack; /* Use <obstack.h> */
struct location; /* Opaque */
+/* G++ 3.3 doesn't seem to like the __attribute__ constructs below. */
+#if (__GNUG__ == 3) && (__GNUC_MINOR__ == 3)
+#define __attribute__(x) /* nothing */
+#endif
/* Translate a C fragment for the location expression, using *INPUT
as the starting location, begin from scratch if *INPUT is null.