summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-12-06 18:01:14 +0200
committerAlon Levy <alevy@redhat.com>2010-12-08 17:13:02 +0200
commitff3fb423ed1e60dc5124e1211613c56555b6cdce (patch)
treefb37c93560e17392575382009aa55bd6d6f56d25 /common
parent8bea5d6b5a8ce4fa11363ced501f7607ad12b8ba (diff)
downloadspice-ff3fb423ed1e60dc5124e1211613c56555b6cdce.tar.gz
spice-ff3fb423ed1e60dc5124e1211613c56555b6cdce.tar.xz
spice-ff3fb423ed1e60dc5124e1211613c56555b6cdce.zip
mingw32 build: fix two functions
Diffstat (limited to 'common')
-rw-r--r--common/canvas_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 6d101f49..db832459 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -115,7 +115,7 @@ static inline uint32_t canvas_16bpp_to_32bpp(uint32_t color)
return ret;
}
-#ifdef WIN32
+#if defined(WIN32) && defined(GDI_CANVAS)
static HDC create_compatible_dc()
{
HDC dc = CreateCompatibleDC(NULL);