chiark / gitweb /
Prep v229: Use parse-printf-format.h if configure did not find printf.h
[elogind.git] / src / basic / stdio-util.h
index 359d12284bf052ac3ba3a7745a7c887cd5aa849b..60cf86a532813bd1ad3c0ae655bb0f1b3b730b40 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && defined(HAVE_PRINTF_H)
 #include <printf.h>
+#else
+#include "parse-printf-format.h"
 #endif
 #include <stdarg.h>
 #include <stdio.h>