1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 10:25:06 +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:
Zbigniew Jędrzejewski-Szmek 2017-03-13 03:11:24 -04:00 committed by Martin Pitt
parent 962a18980d
commit 1070d271fa

View File

@ -22,8 +22,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_