summaryrefslogtreecommitdiff
path: root/cairosdl.h
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-19 10:31:18 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-19 10:40:43 +0300
commit79613500f185893bb2d5acb99143e97ece2ebb87 (patch)
tree6d4dd3ed7b3cefd90b1027e05a39abada07748ae /cairosdl.h
parent4987324ec141f8959bb314a1f2b4173438f4842d (diff)
Make it compile with g++.HEADmaster
Diffstat (limited to 'cairosdl.h')
-rw-r--r--cairosdl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cairosdl.h b/cairosdl.h
index beb190d..53c9430 100644
--- a/cairosdl.h
+++ b/cairosdl.h
@@ -27,6 +27,10 @@
#include <cairo.h>
#include <SDL.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* All cairo and cairosdl functions expect the underlying SDL_Surface
* to be locked or not need locking. The underlying condition is that
* the ->pixels member of the SDL_Surface should be valid and not
@@ -109,4 +113,7 @@ cairosdl_destroy (cairo_t *cr);
#define CAIROSDL_GMASK (255U << CAIROSDL_GSHIFT)
#define CAIROSDL_BMASK (255U << CAIROSDL_BSHIFT)
+#ifdef __cplusplus
+}
+#endif
#endif /* CAIROSDL_H */