summaryrefslogtreecommitdiff
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-09-21 22:08:11 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-09-21 22:08:11 +0300
commitbc5591ac396525b1cf2a2e43f4396b4b854edd9b (patch)
treef95a3980f527d1901a6051bff2ab7e5031ce53f4 /dfa.c
parenta203ea7b6796d2a48c82827ab5ead9589baa6bd8 (diff)
downloadgawk-bc5591ac396525b1cf2a2e43f4396b4b854edd9b.tar.gz
Additional mbs fixes.
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dfa.c b/dfa.c
index 29febf57..9a2e01eb 100644
--- a/dfa.c
+++ b/dfa.c
@@ -53,8 +53,8 @@
#include "gettext.h"
#define _(str) gettext (str)
-#include "mbsupport.h" /* defines MBS_SUPPORT if appropriate */
-#ifdef MBS_SUPPORT
+#include "mbsupport.h" /* defines MBS_SUPPORT to 1 or 0, as appropriate */
+#if MBS_SUPPORT
/* We can handle multibyte strings. */
#include <wchar.h>
#include <wctype.h>
@@ -640,7 +640,7 @@ using_utf8 (void)
static int utf8 = -1;
if (utf8 == -1)
{
-#if defined HAVE_LANGINFO_CODESET && defined MBS_SUPPORT
+#if defined HAVE_LANGINFO_CODESET && MBS_SUPPORT
utf8 = (STREQ (nl_langinfo (CODESET), "UTF-8"));
#else
utf8 = 0;