diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-05-02 12:03:34 +0400 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-05-02 12:03:34 +0400 |
commit | 38efa5f12862993a697398f41cfad4312f77e81f (patch) | |
tree | 8b7aaa6f72aed663168d519690ece5968f41c16b /winsup/mingw/mingwex | |
parent | 05726ddd86c1421add510d5e8395cf7e3ac378f3 (diff) |
* include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
variadic macro.
* mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
Remove unused MBTOWC_FLAGS define.
Diffstat (limited to 'winsup/mingw/mingwex')
-rwxr-xr-x | winsup/mingw/mingwex/mbrtowc.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/winsup/mingw/mingwex/mbrtowc.c b/winsup/mingw/mingwex/mbrtowc.c index e337417c4..adf3c7633 100755 --- a/winsup/mingw/mingwex/mbrtowc.c +++ b/winsup/mingw/mingwex/mbrtowc.c @@ -5,17 +5,7 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> -#define MBTOWC_FLAGS (MB_PRECOMPOSED | MB_ERR_INVALID_CHARS) -/* Attribute `nonnull' was valid as of gcc 3.3. */ -#ifndef ATTRIBUTE_NONNULL -# if (__GNUC__ > 3 ||( __GNUC__ == 3 && __GNUC_MINOR__ >= 3)) -# define ATTRIBUTE_NONNULL(m...) __attribute__ ((__nonnull__ (m))) -# else -# define ATTRIBUTE_NONNULL(m...) -# endif /* GNUC >= 3.3 */ -#endif /* ATTRIBUTE_NONNULL */ - -static int ATTRIBUTE_NONNULL(1, 4) +static int __MINGW_ATTRIB_NONNULL(1) __MINGW_ATTRIB_NONNULL(4) __mbrtowc_cp (wchar_t * __restrict__ pwc, const char * __restrict__ s, size_t n, mbstate_t* __restrict__ ps, const unsigned int cp, const unsigned int mb_max) |