summaryrefslogtreecommitdiff
path: root/lib/regex.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-04-10 06:46:07 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-04-10 06:46:07 +0000
commit72021730a8e675b697b008c45248fc65af05dfaf (patch)
tree415920e9c939cab7fd777f59f59576a2bb8818d6 /lib/regex.c
parent1fe38016fa8b37a6519294dcb9cccda9065d3095 (diff)
downloadcoreutils-72021730a8e675b697b008c45248fc65af05dfaf.tar.xz
Import latest regex module from gnulib.
Diffstat (limited to 'lib/regex.c')
-rw-r--r--lib/regex.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 82e76c091..70ee70ecb 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)