chiark / gitweb /
Prep v231.2: basic/stdio-util.h must include parse-printf-format.h instead of printf.h
[elogind.git] / src / basic / stdio-util.h
index b36e8a947e5615a01450b745eefd849702acff13..3e0ea04f6448344129fb25c86b88dae714fea2d5 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 #pragma once
 
 /***
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#if 0 /// elogind is musl-libc compatible and does not directly include printf.h
 #include <printf.h>
+#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)