summaryrefslogtreecommitdiffstats
path: root/gl/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/regex.c')
-rw-r--r--gl/regex.c37
1 files changed, 23 insertions, 14 deletions
diff --git a/gl/regex.c b/gl/regex.c
index ba0eebee..5a0332e0 100644
--- a/gl/regex.c
+++ b/gl/regex.c
@@ -1,26 +1,35 @@
1/* Extended regular expression matching and search library. 1/* Extended regular expression matching and search library.
2 Copyright (C) 2002, 2003, 2005, 2006, 2009, 2010 Free Software Foundation, 2 Copyright (C) 2002-2013 Free Software Foundation, Inc.
3 Inc.
4 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
5 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. 4 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6 5
7 This program is free software; you can redistribute it and/or modify 6 The GNU C Library is free software; you can redistribute it and/or
8 it under the terms of the GNU General Public License as published by 7 modify it under the terms of the GNU General Public
9 the Free Software Foundation; either version 3, or (at your option) 8 License as published by the Free Software Foundation; either
10 any later version. 9 version 3 of the License, or (at your option) any later version.
11 10
12 This program is distributed in the hope that it will be useful, 11 The GNU C Library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 GNU General Public License for more details. 14 General Public License for more details.
16 15
17 You should have received a copy of the GNU General Public License along 16 You should have received a copy of the GNU General Public
18 with this program; if not, write to the Free Software Foundation, 17 License along with the GNU C Library; if not, see
19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 18 <http://www.gnu.org/licenses/>. */
20 19
21#include <config.h> 20#ifndef _LIBC
21# include <config.h>
22 22
23/* Make sure noone compiles this code with a C++ compiler. */ 23# if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
24# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
25# endif
26# if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
27# pragma GCC diagnostic ignored "-Wold-style-definition"
28# pragma GCC diagnostic ignored "-Wtype-limits"
29# endif
30#endif
31
32/* Make sure no one compiles this code with a C++ compiler. */
24#if defined __cplusplus && defined _LIBC 33#if defined __cplusplus && defined _LIBC
25# error "This is C code, use a C compiler" 34# error "This is C code, use a C compiler"
26#endif 35#endif