summary refs log tree commit diff stats
path: root/include/ui/qemu-pixman.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-08-30 13:38:25 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-11-07 14:04:24 +0400
commitcca157568615465887a6f741d939865659a559ae (patch)
treef2f63913b84eea7beb36ff8cbe310fef3e40f6d7 /include/ui/qemu-pixman.h
parentbb541a7068d2eee51a9abbe2dedcdf27298b1872 (diff)
downloadfocaccia-qemu-cca157568615465887a6f741d939865659a559ae.tar.gz
focaccia-qemu-cca157568615465887a6f741d939865659a559ae.zip
build-sys: add a "pixman" feature
For now, pixman is mandatory, but we set config_host.h and Kconfig.
Once compilation is fixed, "pixman" will become actually optional.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include/ui/qemu-pixman.h')
-rw-r--r--include/ui/qemu-pixman.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h
index e587c48b1f..d37feb5e3c 100644
--- a/include/ui/qemu-pixman.h
+++ b/include/ui/qemu-pixman.h
@@ -6,11 +6,13 @@
 #ifndef QEMU_PIXMAN_H
 #define QEMU_PIXMAN_H
 
+#ifdef CONFIG_PIXMAN
 /* pixman-0.16.0 headers have a redundant declaration */
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wredundant-decls"
 #include <pixman.h>
 #pragma GCC diagnostic pop
+#endif
 
 /*
  * pixman image formats are defined to be native endian,