cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/lib/regex_internal.c


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/lib/regex_internal.c
Date: Thu, 15 Sep 2005 15:26:20 -0400

Index: ccvs/lib/regex_internal.c
diff -u ccvs/lib/regex_internal.c:1.3 ccvs/lib/regex_internal.c:1.4
--- ccvs/lib/regex_internal.c:1.3       Tue Sep  6 15:11:01 2005
+++ ccvs/lib/regex_internal.c   Thu Sep 15 19:26:19 2005
@@ -17,6 +17,19 @@
    with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
 
+#ifndef __GNUC_PREREQ
+# if defined __GNUC__ && defined __GNUC_MINOR__
+#  define __GNUC_PREREQ(maj, min) \
+       ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
+# else
+#  define __GNUC_PREREQ(maj, min) 0
+# endif
+#endif
+
+#if !__GNUC_PREREQ (3, 0)
+# define pure
+#endif
+
 static void re_string_construct_common (const char *str, Idx len,
                                        re_string_t *pstr,
                                        REG_TRANSLATE_TYPE trans, bool icase,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]