X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fwidechars.h;h=d06c454350f1fce49d3f365f7414c576521f7075;hp=18c72013542ca56d0c9382697fb07bf3b5d1b6b9;hb=1f7a36fe16b11bb4aab51be89bbc1b0f75936b78;hpb=fbd79f88d0de057053bd9658499f4e87c10ff2f4 diff --git a/test/widechars.h b/test/widechars.h index 18c72013..d06c4543 100644 --- a/test/widechars.h +++ b/test/widechars.h @@ -34,7 +34,7 @@ #if USE_WIDEC_SUPPORT -#if defined(_WIN32) && !defined(_MSC_VER) +#if defined(_NC_WINDOWS) && !defined(_MSC_VER) /* * MinGW has wide-character functions, but they do not work correctly. */ @@ -46,7 +46,7 @@ extern int __MINGW_NOTHROW _nc_mbtowc(wchar_t *pwc, const char *s, size_t n); extern int __MINGW_NOTHROW _nc_mblen(const char *, size_t); #define mblen(s,n) _nc_mblen(s, n) -#endif /* _WIN32 */ +#endif /* _WIN32||_WIN64 */ #if HAVE_MBTOWC && HAVE_MBLEN #define reset_mbytes(state) IGNORE_RC(mblen(NULL, 0)), IGNORE_RC(mbtowc(NULL, NULL, 0))