summaryrefslogtreecommitdiffstats
path: root/gl/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/regex_internal.h')
-rw-r--r--gl/regex_internal.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/gl/regex_internal.h b/gl/regex_internal.h
index dc322ec..2cb8c4d 100644
--- a/gl/regex_internal.h
+++ b/gl/regex_internal.h
@@ -1,6 +1,6 @@
1/* Extended regular expression matching and search library. 1/* Extended regular expression matching and search library.
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
3 Free Software Foundation, Inc. 3 Software Foundation, Inc.
4 This file is part of the GNU C Library. 4 This file is part of the GNU C Library.
5 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. 5 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6 6
@@ -28,9 +28,8 @@
28#include <stdlib.h> 28#include <stdlib.h>
29#include <string.h> 29#include <string.h>
30 30
31#ifdef _LIBC 31#include <langinfo.h>
32# include <langinfo.h> 32#ifndef _LIBC
33#else
34# include "localcharset.h" 33# include "localcharset.h"
35#endif 34#endif
36#if defined HAVE_LOCALE_H || defined _LIBC 35#if defined HAVE_LOCALE_H || defined _LIBC
@@ -852,4 +851,21 @@ re_string_elem_size_at (const re_string_t *pstr, Idx idx)
852} 851}
853#endif /* RE_ENABLE_I18N */ 852#endif /* RE_ENABLE_I18N */
854 853
854#ifndef __GNUC_PREREQ
855# if defined __GNUC__ && defined __GNUC_MINOR__
856# define __GNUC_PREREQ(maj, min) \
857 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
858# else
859# define __GNUC_PREREQ(maj, min) 0
860# endif
861#endif
862
863#if __GNUC_PREREQ (3,4)
864# undef __attribute_warn_unused_result__
865# define __attribute_warn_unused_result__ \
866 __attribute__ ((__warn_unused_result__))
867#else
868# define __attribute_warn_unused_result__ /* empty */
869#endif
870
855#endif /* _REGEX_INTERNAL_H */ 871#endif /* _REGEX_INTERNAL_H */