* lib/c32rtomb.c: Include attribute.h.
(FALLTHROUGH): Remove macro.
* modules/c32rtomb (Depends-on): Add attribute.
+2020-05-08 Bruno Haible <bruno@clisp.org>
+
+ c32rtomb: Use module 'attribute'.
+ * lib/c32rtomb.c: Include attribute.h.
+ (FALLTHROUGH): Remove macro.
+ * modules/c32rtomb (Depends-on): Add attribute.
+
2020-05-08 Bruno Haible <bruno@clisp.org>
xsize: Use module 'attribute'.
#include <errno.h>
#include <wchar.h>
+#include "attribute.h" /* FALLTHROUGH */
#include "localcharset.h"
#include "streq.h"
-#ifndef FALLTHROUGH
-# if __GNUC__ < 7
-# define FALLTHROUGH ((void) 0)
-# else
-# define FALLTHROUGH __attribute__ ((__fallthrough__))
-# endif
-#endif
-
size_t
c32rtomb (char *s, char32_t wc, mbstate_t *ps)
#undef c32rtomb
Depends-on:
uchar
+attribute [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
wchar [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
wcrtomb [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
localcharset [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 1]