chiark / gitweb /
tree-wide: drop 'This file is part of systemd' blurb
[elogind.git] / src / systemd / _sd-common.h
index 2d4e1f26e1ebfe92c55fb56af52573f7fd221127..4eceb791e1b80a1c2c35095eb7e0e535c0a2c474 100644 (file)
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 #ifndef foosdcommonhfoo
 #define foosdcommonhfoo
 
 /***
-  This file is part of systemd.
-
   Copyright 2013 Lennart Poettering
 
   systemd is free software; you can redistribute it and/or modify it
@@ -22,8 +21,8 @@
 
 /* This is a private header; never even think of including this directly! */
 
-#if __INCLUDE_LEVEL__ <= 1
-#error "Do not include _sd-common.h directly; it is a private header."
+#if defined(__INCLUDE_LEVEL__) && __INCLUDE_LEVEL__ <= 1
+#  error "Do not include _sd-common.h directly; it is a private header."
 #endif
 
 #ifndef _sd_printf_
@@ -74,7 +73,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);                               \
         }                                                       \