-/* Portable <regex.h>
- Copyright 2000 Free Software Foundation, Inc.
+/* Portable <regex.h>.
+ Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
This file is part of GDB.
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#ifndef _GDB_REGEX_H
-#define _GDB_REGEX_H
+#ifndef GDB_REGEX_H
+#define GDB_REGEX_H 1
+
#ifdef USE_INCLUDED_REGEX
-#include "gnu-regex.h"
+# include "xregex.h"
#else
-#include <regex.h>
+/* Request 4.2 BSD regex functions. */
+# define _REGEX_RE_COMP
+# include <regex.h>
#endif
-#endif /* _GDB_REGEX_H */
+
+#endif /* not GDB_REGEX_H */