Add extern "C" guards for c++
authorAlexander Larsson <alexl@redhat.com>
Tue, 9 Feb 2010 12:22:38 +0000 (13:22 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 9 Feb 2010 12:22:38 +0000 (13:22 +0100)
pixman/pixman.h

index 4fce706..5e35d92 100644 (file)
@@ -71,6 +71,10 @@ SOFTWARE.
 
 #include <pixman-version.h>
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /*
  * Standard integers
  */
@@ -909,4 +913,8 @@ void           pixman_rasterize_trapezoid  (pixman_image_t            *image,
                                            int                        x_off,
                                            int                        y_off);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif /* PIXMAN_H__ */