]> Savannah Git Hosting - gnulib.git/commitdiff
nstrftime: Guide inlining also on clang.
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 17:13:57 +0000 (19:13 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 17:13:57 +0000 (19:13 +0200)
* lib/nstrftime.c (iso_week_days): Inline also on clang.

ChangeLog
lib/nstrftime.c

index 1c79439beda9e2afc8820239c3813afb90473dbc..8b678907b157b81b64d01dd3ee11cf30d5985b6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-16  Bruno Haible  <bruno@clisp.org>
+
+       nstrftime: Guide inlining also on clang.
+       * lib/nstrftime.c (iso_week_days): Inline also on clang.
+
 2020-08-16  Bruno Haible  <bruno@clisp.org>
 
        intprops: Avoid bogus "warning: division by zero is undefined" on clang.
index 28bc42fd66aae570b8dda78815658822b4dc655c..580224d1b8a17c4db4b4913a80da83992b56a50c 100644 (file)
@@ -368,7 +368,7 @@ tm_diff (const struct tm *a, const struct tm *b)
 #define ISO_WEEK1_WDAY 4 /* Thursday */
 #define YDAY_MINIMUM (-366)
 static int iso_week_days (int, int);
-#ifdef __GNUC__
+#if defined __GNUC__ || defined __clang__
 __inline__
 #endif
 static int