$OpenBSD: patch-lily_include_smobs_hh,v 1.3 2011/07/06 14:14:06 kili Exp $

Make g++ 3.3.5 happy.

--- lily/include/smobs.hh.orig	Sun Jun 12 16:05:50 2011
+++ lily/include/smobs.hh	Sun Jun 19 13:45:40 2011
@@ -104,6 +104,12 @@
   SCM smobbed_copy () const;			\
   DECLARE_BASE_SMOBS (CL)
 
+#if __GNUC__ < 3 || __GNUC__ == 3 && __GNUC_MINOR__ < 4
+# define ATTR_PURE
+#else
+# define ATTR_PURE __attribute__((pure))
+#endif
+
 #define DECLARE_BASE_SMOBS(CL)					\
   friend class Non_existent_class;				\
   private:							\
@@ -114,7 +120,7 @@
   static int print_smob (SCM s, SCM p, scm_print_state*);	\
   public:							\
   static SCM equal_p (SCM a, SCM b);				\
-  static CL *unsmob (SCM s) __attribute__((pure))		\
+  static CL *unsmob (SCM s) ATTR_PURE				\
   {								\
     if (SCM_NIMP (s) && SCM_CELL_TYPE (s) == smob_tag_)		\
       return (CL *) SCM_CELL_WORD_1 (s);			\
