aboutsummaryrefslogtreecommitdiffstats
path: root/pc
diff options
context:
space:
mode:
Diffstat (limited to 'pc')
-rw-r--r--pc/ChangeLog8
-rw-r--r--pc/config.sed8
-rw-r--r--pc/gawkmisc.pc15
3 files changed, 29 insertions, 2 deletions
diff --git a/pc/ChangeLog b/pc/ChangeLog
index 18bbbf15..10f0101c 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,11 @@
+2010-02-03 Juan Manuel Guerrero <juan.guerrero@gmx.de>
+
+ * config.sed (_GNU_SOURCE) [__DJGPP__]: Define for DJGPP.
+ (HAVE_LANGINFO_CODESET) [__DJGPP__]: Define for DJGPP.
+ [__DJGPP__]: Prototype of is_valid_identifier.
+
+ * gawkmisc.pc (nl_langinfo) [__DJGPP__]: New function.
+
2019-02-02 Eli Zaretskii <eliz@gnu.org>
* gawkmisc.pc (w32_execvp) [__MINGW32__]: Renamed from execvp, to
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__\
diff --git a/pc/gawkmisc.pc b/pc/gawkmisc.pc
index 2e581011..e0f3f3ff 100644
--- a/pc/gawkmisc.pc
+++ b/pc/gawkmisc.pc
@@ -1108,6 +1108,21 @@ init_sockets(void)
#ifdef __DJGPP__
+/* Replacement for the missing nl_langinfo. DJGPP provides only C locale. */
+#include <langinfo.h>
+
+char *
+nl_langinfo (int item)
+{
+ switch (item)
+ {
+ case CODESET:
+ default:
+ return (char *) "";
+ }
+}
+
+
# if __DJGPP__ == 2 && __DJGPP_MINOR__ < 4
int
unsetenv (const char *name)