]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/widechar/widechars.c
ncurses 6.2 - patch 20201017
[ncurses.git] / ncurses / widechar / widechars.c
index 35774793216d96b5fcc354a05116fd9b7654fffa..d05ba98a8265fa5ad53d852f159ccc9488017034 100644 (file)
@@ -31,9 +31,9 @@
 
 #if USE_WIDEC_SUPPORT
 
-MODULE_ID("$Id: widechars.c,v 1.7 2020/02/02 23:34:34 tom Exp $")
+MODULE_ID("$Id: widechars.c,v 1.9 2020/08/29 16:22:03 juergen Exp $")
 
-#if defined(_WIN32)
+#if (defined(_NC_WINDOWS)) && !defined(_NC_MSC)
 /*
  * MinGW has wide-character functions, but they do not work correctly.
  */
@@ -148,6 +148,6 @@ _nc_wctomb(char *s, wchar_t wc)
     return result;
 }
 
-#endif /* _WIN32 */
+#endif /* _NC_WINDOWS */
 
 #endif /* USE_WIDEC_SUPPORT */