aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/regex.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/regex.c b/src/regex.c
index 2bd2152f925..fe527dd2294 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -33,6 +33,14 @@
33/* We need this for `regex.h', and perhaps for the Emacs include files. */ 33/* We need this for `regex.h', and perhaps for the Emacs include files. */
34#include <sys/types.h> 34#include <sys/types.h>
35 35
36/* This is for other GNU distributions with internationalized messages.
37 The GNU C Library itself does not yet support such messages. */
38#if HAVE_LIBINTL_H
39# include <libintl.h>
40#else
41# define gettext(msgid) (msgid)
42#endif
43
36/* The `emacs' switch turns on certain matching commands 44/* The `emacs' switch turns on certain matching commands
37 that make sense only in Emacs. */ 45 that make sense only in Emacs. */
38#ifdef emacs 46#ifdef emacs
@@ -41,9 +49,6 @@
41#include "buffer.h" 49#include "buffer.h"
42#include "syntax.h" 50#include "syntax.h"
43 51
44/* Emacs uses `NULL' as a predicate. */
45#undef NULL
46
47#else /* not emacs */ 52#else /* not emacs */
48 53
49#ifdef STDC_HEADERS 54#ifdef STDC_HEADERS
@@ -53,14 +58,6 @@ char *malloc ();
53char *realloc (); 58char *realloc ();
54#endif 59#endif
55 60
56/* This is for other GNU distributions with internationalized messages.
57 The GNU C Library itself does not yet support such messages. */
58#if HAVE_LIBINTL_H
59# include <libintl.h>
60#else
61# define gettext(msgid) (msgid)
62#endif
63
64 61
65/* We used to test for `BSTRING' here, but only GCC and Emacs define 62/* We used to test for `BSTRING' here, but only GCC and Emacs define
66 `BSTRING', as far as I know, and neither of them use this code. */ 63 `BSTRING', as far as I know, and neither of them use this code. */