summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-02-21 02:01:16 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-02-21 02:07:32 -0500
commitad5cbba4c05f8521004c6aa1afd5aa74040afad0 (patch)
tree60e2dd434273d6eec15c22250e70a1f6fb6defd1
parent14f201dc47ba76fcf677936f4f809249054fd6ad (diff)
Hide the C++ extern "C" declarations behind macros.
That way they don't confuse the indenting algorithm in editors such as Emacs.
-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__ */