summaryrefslogtreecommitdiffstats
path: root/common/lines.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-19 22:58:36 +0200
committerAlon Levy <alevy@redhat.com>2011-07-21 15:09:27 +0300
commit6bd492fa7975b90a3be31c65ba1fbafdd0002f0f (patch)
treef2a566ef234af22cd630f7a26c983af3a02c4565 /common/lines.h
parent3dab7bda53901a80e15b98392fb8948b2f298ca1 (diff)
downloadspice-6bd492fa7975b90a3be31c65ba1fbafdd0002f0f.tar.gz
spice-6bd492fa7975b90a3be31c65ba1fbafdd0002f0f.tar.xz
spice-6bd492fa7975b90a3be31c65ba1fbafdd0002f0f.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/lines.h')
-rw-r--r--common/lines.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/lines.h b/common/lines.h
index 1d092f05..73eef9bc 100644
--- a/common/lines.h
+++ b/common/lines.h
@@ -54,6 +54,10 @@ SOFTWARE.
#include <string.h>
#include "draw.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct lineGC lineGC;
typedef struct {
@@ -127,4 +131,8 @@ extern int spice_canvas_clip_spans(pixman_region32_t *clip_region,
int *new_widths,
int sorted);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LINES_H */