diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-15 18:39:14 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-12-17 19:37:08 +0100 |
commit | c3f31b68f2ec187833f3688c4de935013e7e5ee1 (patch) | |
tree | b5fc4820ae29f2679ab208d070e6700e72a7ba77 /common | |
parent | 1c1be9d275a0301db93980e3d77f9f7745b7c7d7 (diff) |
common: add windows.h where required
This patch should be sent to upstream as well..
Diffstat (limited to 'common')
-rw-r--r-- | common/canvas_base.h | 3 | ||||
-rw-r--r-- | common/canvas_utils.c | 2 | ||||
-rw-r--r-- | common/canvas_utils.h | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/common/canvas_base.h b/common/canvas_base.h index 2166dcf..bea041f 100644 --- a/common/canvas_base.h +++ b/common/canvas_base.h @@ -24,6 +24,9 @@ #include "lz.h" #include "region.h" #include "draw.h" +#ifdef WIN32 +#include <windows.h> +#endif typedef void (*spice_destroy_fn_t)(void *data); diff --git a/common/canvas_utils.c b/common/canvas_utils.c index 020b23c..01de936 100644 --- a/common/canvas_utils.c +++ b/common/canvas_utils.c @@ -27,7 +27,7 @@ #include "mem.h" #ifdef WIN32 -extern int gdi_handlers; +int gdi_handlers; #endif #ifndef ASSERT diff --git a/common/canvas_utils.h b/common/canvas_utils.h index b87b816..fe66f85 100644 --- a/common/canvas_utils.h +++ b/common/canvas_utils.h @@ -19,6 +19,10 @@ #ifndef _H_CANVAS_UTILS #define _H_CANVAS_UTILS +#ifdef WIN32 +#include <windows.h> +#endif + #include <spice/types.h> #include "pixman_utils.h" |