From 9a72ecd6dc36eab0497dc428d10a6ad1dd87a19a Mon Sep 17 00:00:00 2001 From: Claudio Fontana Date: Fri, 21 Jul 2006 23:40:02 +0000 Subject: * upgraded gnulib --- lib/regex.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/regex.c') diff --git a/lib/regex.c b/lib/regex.c index 82e76c0..70ee70e 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -1,5 +1,5 @@ /* Extended regular expression matching and search library. - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Isamu Hasegawa . @@ -21,6 +21,11 @@ # include #endif +/* Make sure noone compiles this code with a C++ compiler. */ +#if defined __cplusplus && defined _LIBC +# error "This is C code, use a C compiler" +#endif + #ifdef _LIBC /* We have to keep the namespace clean. */ # define regfree(preg) __regfree (preg) -- cgit v1.2.3