summaryrefslogtreecommitdiff
path: root/src/systemd/_sd-common.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-11 13:41:49 -0500
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:57 +0200
commitf4c228f18281f3a7b305940329ca9b7a51fc430d (patch)
tree0b2234b58618a94bbc44bcdefd8540d9af1aa5f1 /src/systemd/_sd-common.h
parent6cc25090fdf6eb1c8ef81318246ec44d57bde0cf (diff)
headers: use __inline__ instead of inline
https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/Alternate-Keywords.html#Alternate-Keywords recommends __inline__ over inline in ANSI C compatible headers. Tested with gcc-5.3 and clang-3.7. https://bugzilla.redhat.com/show_bug.cgi?id=1316964
Diffstat (limited to 'src/systemd/_sd-common.h')
-rw-r--r--src/systemd/_sd-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/_sd-common.h b/src/systemd/_sd-common.h
index 2d4e1f26e..3bb886be7 100644
--- a/src/systemd/_sd-common.h
+++ b/src/systemd/_sd-common.h
@@ -74,7 +74,7 @@
#endif
#define _SD_DEFINE_POINTER_CLEANUP_FUNC(type, func) \
- static inline void func##p(type **p) { \
+ static __inline__ void func##p(type **p) { \
if (*p) \
func(*p); \
} \