[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
improve clang support (43)
From: |
Bruno Haible |
Subject: |
improve clang support (43) |
Date: |
Sun, 16 Aug 2020 19:14:21 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
clang can inline, like GCC. It also supports the '__inline' and '__inline__'
keywords.
2020-08-16 Bruno Haible <bruno@clisp.org>
nstrftime: Guide inlining also on clang.
* lib/nstrftime.c (iso_week_days): Inline also on clang.
diff --git a/lib/nstrftime.c b/lib/nstrftime.c
index 28bc42f..580224d 100644
--- a/lib/nstrftime.c
+++ b/lib/nstrftime.c
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- improve clang support (43),
Bruno Haible <=