summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--loc2c.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 12bb3600..8d3af735 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-21 Frank Ch. Eigler <fche@elastic.org>
+
+ * loc2c.h: Add __attribute__ defeating code for g++ 3.3 compatibility.
+
2005-12-20 Josh Stone <joshua.i.stone@intel.com>
* vim/filetype.vim: defines *.stp files as SystemTap scripts
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.