X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fstdio-util.h;h=3e0ea04f6448344129fb25c86b88dae714fea2d5;hp=a5bdc56788edf44f7cfd5027b83b781e460b8333;hb=HEAD;hpb=1d120b339a85b3bee6bce78253ee303ff9d2522a diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h index a5bdc5678..3e0ea04f6 100644 --- a/src/basic/stdio-util.h +++ b/src/basic/stdio-util.h @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - #pragma once /*** @@ -21,9 +19,11 @@ along with systemd; If not, see . ***/ -#ifdef __GLIBC__ +#if 0 /// elogind is musl-libc compatible and does not directly include printf.h #include -#endif +#else +#include "parse-printf-format.h" +#endif // 0 #include #include #include @@ -77,4 +77,4 @@ do { \ assert_not_reached("Unknown format string argument."); \ } \ } \ -} while(false) +} while (false)