* lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
platforms.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2010-01-28 Eric Blake <ebb9@byu.net>
+
+ regex: fix build failure
+ * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
+ platforms.
+
2010-01-28 Jim Meyering <meyering@redhat.com>
regex: do not ignore memory allocation failure
}
#endif /* RE_ENABLE_I18N */
+#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,4)
# undef __attribute_warn_unused_result__
# define __attribute_warn_unused_result__ \