diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-19 22:58:36 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-05-02 11:24:44 +0200 |
commit | 531d5bdf525f431688e97da5389e68cec3a2fec0 (patch) | |
tree | 905fdce38071f8456c485fdc3a3b1a96273a55b5 /gl_canvas.h | |
parent | b41ad89024031db097ebb132cecc7c6f1d03b3b5 (diff) |
common: add extern "C" guards to headers
Since some spice C++ code is using code from common/, the C
functions need to be marked as such for the C++ compiler, otherwise
we'll get linkage issues.
Diffstat (limited to 'gl_canvas.h')
-rw-r--r-- | gl_canvas.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gl_canvas.h b/gl_canvas.h index d7125e6..ff3fba0 100644 --- a/gl_canvas.h +++ b/gl_canvas.h @@ -20,6 +20,10 @@ #include "canvas_base.h" #include "region.h" +#ifdef __cplusplus +extern "C" { +#endif + SpiceCanvas *gl_canvas_create(int width, int height, uint32_t format #ifdef SW_CANVAS_CACHE , SpiceImageCache *bits_cache @@ -35,3 +39,6 @@ SpiceCanvas *gl_canvas_create(int width, int height, uint32_t format void gl_canvas_set_textures_lost(SpiceCanvas *canvas, int textures_lost); void gl_canvas_init(); +#ifdef __cplusplus +} +#endif |