chiark / gitweb /
Merge pull request #22 from elogind/dev_v232
[elogind.git] / src / basic / stdio-util.h
index 359d12284bf052ac3ba3a7745a7c887cd5aa849b..3e0ea04f6448344129fb25c86b88dae714fea2d5 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#ifdef __GLIBC__
+#if 0 /// elogind is musl-libc compatible and does not directly include printf.h
 #include <printf.h>
-#endif
+#else
+#include "parse-printf-format.h"
+#endif // 0
 #include <stdarg.h>
 #include <stdio.h>
 #include <sys/types.h>
@@ -75,4 +77,4 @@ do {                                                                    \
                         assert_not_reached("Unknown format string argument."); \
                 }                                                       \
         }                                                               \
-} while(false)
+} while (false)