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 | 60373e01fa9273751b037998329645072e21e837 (patch) | |
tree | 148aaaa1cc1ceed9f7a40098267564f7b633f882 /common/pixman_utils.h | |
parent | 06c83ca99458f611d871936c9d1bf433703a8f05 (diff) | |
download | spice-60373e01fa9273751b037998329645072e21e837.tar.gz spice-60373e01fa9273751b037998329645072e21e837.tar.xz spice-60373e01fa9273751b037998329645072e21e837.zip |
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 'common/pixman_utils.h')
-rw-r--r-- | common/pixman_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/pixman_utils.h b/common/pixman_utils.h index e15b682f..61eaddd9 100644 --- a/common/pixman_utils.h +++ b/common/pixman_utils.h @@ -26,6 +26,10 @@ #include "draw.h" +#ifdef __cplusplus +extern "C" { +#endif + /* This lists all possible 2 argument binary raster ops. * This enum has the same values as the X11 GXcopy type * and same as the GL constants (GL_AND etc) if you @@ -125,4 +129,8 @@ void spice_pixman_copy_rect(pixman_image_t *image, int w, int h, int dest_x, int dest_y); +#ifdef __cplusplus +} +#endif + #endif /* _H__PIXMAN_UTILS */ |