+2021-12-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ nstrftime: simplify by using libc-config.h.
+ * lib/nstrftime.c [!_LIBC]: Include libc-config.h
+ instead of config.h.
+ (iso_week_days): Simplify via libc-config.h’s __inline.
+ (my_strftime): Simplify via libc-config.h’s libc_hidden_def.
+ * modules/nstrftime (Depends-on): Add libc-config.
+
2021-12-18 Bruno Haible <bruno@clisp.org>
libtextstyle-optional: Fix generation of textstyle.h (regr. 2021-12-15).
# define HAVE_TZNAME 1
# include "../locale/localeinfo.h"
#else
-# include <config.h>
+# include <libc-config.h>
# if FPRINTFTIME
# include "fprintftime.h"
# else
#define ISO_WEEK1_WDAY 4 /* Thursday */
#define YDAY_MINIMUM (-366)
static int iso_week_days (int, int);
-#if defined __GNUC__ || defined __clang__
-__inline__
-#endif
-static int
+static __inline int
iso_week_days (int yday, int wday)
{
/* Add enough to the first operand of % to make it nonnegative. */
return __strftime_internal (s, STRFTIME_ARG (maxsize) format, tp, false,
0, -1, &tzset_called extra_args LOCALE_ARG);
}
-#if defined _LIBC && ! FPRINTFTIME
libc_hidden_def (my_strftime)
-#endif
/* Just like my_strftime, above, but with more parameters.
UPCASE indicates that the result should be converted to upper case.