diff options
Diffstat (limited to 'lib/regex.c')
-rw-r--r-- | lib/regex.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <isamu@yamato.ibm.com>. @@ -21,6 +21,11 @@ # include <config.h> #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) |