提交 6e72719e 编写于 作者: A Alexander Graf

fbdev: fix pixman compile on old pixman

My QEMU compile failed with the following error:

qemu-pixman.c: In function ‘qemu_pixman_get_type’:
qemu-pixman.c:24: error: ‘PIXMAN_TYPE_BGRA’ undeclared (first use in this function)
qemu-pixman.c:24: error: (Each undeclared identifier is reported only once
qemu-pixman.c:24: error: for each function it appears in.)

Guard the PIXMAN_TYPE_BGRA branch like in the case right above the failing
case, so that compilation is fixed. Functionality on such old pixman is a
different question ;-).
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 c4d88267
...@@ -21,7 +21,9 @@ int qemu_pixman_get_type(int rshift, int gshift, int bshift) ...@@ -21,7 +21,9 @@ int qemu_pixman_get_type(int rshift, int gshift, int bshift)
if (rshift == 0) { if (rshift == 0) {
type = PIXMAN_TYPE_ABGR; type = PIXMAN_TYPE_ABGR;
} else { } else {
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)
type = PIXMAN_TYPE_BGRA; type = PIXMAN_TYPE_BGRA;
#endif
} }
} }
return type; return type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册