The gstdio.h header defines some low level wrappers for
things like fsync, stat, lstat, etc.
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <glib.h>
+#include "glibcompat.h"
#if STATIC_ANALYSIS
# undef NDEBUG /* Don't let a prior NDEBUG definition cause trouble. */
#include "libvirt/libvirt-admin.h"
#include "libvirt/virterror.h"
-#include "glibcompat.h"
-
/* Merely casting to (void) is not sufficient since the
* introduction of the "warn_unused_result" attribute
*/
#pragma once
#include <glib.h>
+#include <glib/gstdio.h>
char *vir_g_strdup_printf(const char *msg, ...)
G_GNUC_PRINTF(1, 2);