summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pixman/pixman.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/pixman/pixman.h b/pixman/pixman.h
index 5009c6d7..69af0f90 100644
--- a/pixman/pixman.h
+++ b/pixman/pixman.h
@@ -72,9 +72,15 @@ SOFTWARE.
#include <pixman-version.h>
#ifdef __cplusplus
-extern "C" {
+#define PIXMAN_BEGIN_DECLS extern "C" {
+#define PIXMAN_END_DECLS }
+#else
+#define PIXMAN_BEGIN_DECLS
+#define PIXMAN_END_DECLS
#endif
+PIXMAN_BEGIN_DECLS
+
/*
* Standard integers
*/
@@ -918,8 +924,6 @@ void pixman_rasterize_trapezoid (pixman_image_t *image,
int x_off,
int y_off);
-#ifdef __cplusplus
-}
-#endif
+PIXMAN_END_DECLS
#endif /* PIXMAN_H__ */