mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
headers: check that __INCLUDE_LEVEL__ is defined before using it (#5575)
That macro is a gcc extension, and while widely supported, not ubiquitous. In particular the coverity scanner is having trouble with it.
This commit is contained in:
parent
962a18980d
commit
1070d271fa
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
/* This is a private header; never even think of including this directly! */
|
/* This is a private header; never even think of including this directly! */
|
||||||
|
|
||||||
#if __INCLUDE_LEVEL__ <= 1
|
#if defined(__INCLUDE_LEVEL__) && __INCLUDE_LEVEL__ <= 1
|
||||||
#error "Do not include _sd-common.h directly; it is a private header."
|
# error "Do not include _sd-common.h directly; it is a private header."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _sd_printf_
|
#ifndef _sd_printf_
|
||||||
|
Loading…
Reference in New Issue
Block a user