summaryrefslogtreecommitdiff
path: root/common/gdi_canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/gdi_canvas.h')
-rw-r--r--common/gdi_canvas.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/common/gdi_canvas.h b/common/gdi_canvas.h
index f92c042..ccccdee 100644
--- a/common/gdi_canvas.h
+++ b/common/gdi_canvas.h
@@ -24,15 +24,14 @@
#endif
#include <stdint.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <spice/macros.h>
#include "pixman_utils.h"
#include "canvas_base.h"
#include "region.h"
+SPICE_BEGIN_DECLS
+
SpiceCanvas *gdi_canvas_create(int width, int height,
HDC dc, class RecurciveMutex *lock, uint32_t format,
SpiceImageCache *bits_cache,
@@ -44,8 +43,6 @@ SpiceCanvas *gdi_canvas_create(int width, int height,
void gdi_canvas_init(void);
-#ifdef __cplusplus
-}
-#endif
+SPICE_END_DECLS
#endif