aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-08-28 22:12:16 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-08-28 22:12:16 +0300
commite3d10b231e20e64c673556d3ed4eb96dbe8bbff3 (patch)
tree78efa4ed54bba9c56e8d0112f5eeb7903a9bb6da /mbsupport.h
parentebb3d8ff179f99fd2abf088743b1076fb8eaa20b (diff)
parent00af70530b9a79dbeee4d0e7a0fafdb9bee134d5 (diff)
downloadegawk-e3d10b231e20e64c673556d3ed4eb96dbe8bbff3.tar.gz
egawk-e3d10b231e20e64c673556d3ed4eb96dbe8bbff3.tar.bz2
egawk-e3d10b231e20e64c673556d3ed4eb96dbe8bbff3.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'mbsupport.h')
-rw-r--r--mbsupport.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/mbsupport.h b/mbsupport.h
index e7b40423..51cec3c7 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -44,7 +44,13 @@
#define wcslen strlen
#define wctob(wc) (EOF)
-#define mbstate_t int
+#if (__DJGPP__ > 2 || __DJGPP_MINOR__ >= 3)
+# include <ctype.h>
+# include <wchar.h>
+# include <wctype.h>
+#else
+# define mbstate_t int
+#endif
extern wctype_t wctype(const char *name);
extern int iswctype(wint_t wc, wctype_t desc);