From 112b531a1b74547e8575f7a687d617869e86c766 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 21 Dec 2005 20:53:13 +0000 Subject: 2005-12-21 Frank Ch. Eigler * loc2c.h: Add __attribute__ defeating code for g++ 3.3 compatibility. --- loc2c.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'loc2c.h') 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 */ 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. -- cgit