X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fwidechars.h;h=2578a92539925bd09a85e6095c6dc7bf049422a3;hp=e7897bae6ca711edd5157b8417766c756ef5ffca;hb=1b93a8aeaacc07de6d2aa08e658402b54446f064;hpb=286b1e1135a99a4dd5844e5d45af42098155fab5 diff --git a/test/widechars.h b/test/widechars.h index e7897bae..2578a925 100644 --- a/test/widechars.h +++ b/test/widechars.h @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2012 Free Software Foundation, Inc. * + * Copyright 2018,2020 Thomas E. Dickey * + * Copyright 2012 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -33,7 +34,7 @@ #if USE_WIDEC_SUPPORT -#if defined(__MINGW32__) +#if defined(_NC_WINDOWS) && !defined(_MSC_VER) && !defined(EXP_WIN32_DRIVER) /* * MinGW has wide-character functions, but they do not work correctly. */ @@ -45,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 /* __MINGW32__ */ +#endif /* _WIN32||_WIN64 */ #if HAVE_MBTOWC && HAVE_MBLEN #define reset_mbytes(state) IGNORE_RC(mblen(NULL, 0)), IGNORE_RC(mbtowc(NULL, NULL, 0))