aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'mbsupport.h')
-rw-r--r--mbsupport.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/mbsupport.h b/mbsupport.h
index f647d788..1eb1a444 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 2004, 2005, 2011 the Free Software Foundation, Inc.
+ * Copyright (C) 2004, 2005, 2011, 2012 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -71,7 +71,7 @@
/* All this glop is for dfa.c. Bleah. */
-#ifndef DJGPP
+#ifndef __DJGPP__
#define wchar_t char
#endif
@@ -81,7 +81,9 @@
#define WEOF EOF
#define towupper toupper
#define towlower tolower
-#define btowc(x) (x)
+#ifndef __DJGPP__
+#define btowc(x) ((int)x)
+#endif
#define iswalnum isalnum
#define iswalpha isalpha
#define iswupper isupper