aboutsummaryrefslogtreecommitdiffstats
path: root/pc/config.sed
diff options
context:
space:
mode:
Diffstat (limited to 'pc/config.sed')
-rw-r--r--pc/config.sed8
1 files changed, 6 insertions, 2 deletions
diff --git a/pc/config.sed b/pc/config.sed
index 840feab6..45f0287d 100644
--- a/pc/config.sed
+++ b/pc/config.sed
@@ -83,7 +83,7 @@ s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/
#define HAVE_ISWUPPER 1\
#endif
/^#undef HAVE_LANGINFO_CODESET *$/c\
-#ifdef __MINGW32__\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define HAVE_LANGINFO_CODESET 1\
#endif
s/^#undef HAVE_LIBM *$/#define HAVE_LIBM 1/
@@ -301,7 +301,7 @@ s/^#undef TIME_WITH_SYS_TIME *$/#define TIME_WITH_SYS_TIME 1/
/^\/\* Enable extensions on AIX 3, Interix. \*\//i\
/* This is required to compile Gnulib regex code. */\
-#ifdef __MINGW32__\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define _GNU_SOURCE 1\
#endif
@@ -318,6 +318,10 @@ $a\
# else\
# define DEFPATH ".;c:/lib/awk;c:/gnu/lib/awk"\
# endif\
+\
+/* Function prototype. */\
+#include <stdbool.h>\
+extern bool is_valid_identifier(const char *name);\
#endif\
\
#ifndef __DJGPP__\