diff options
author | Christian Biesinger <cbiesinger@web.de> | 2005-12-18 16:37:14 +0000 |
---|---|---|
committer | Christian Biesinger <cbiesinger@web.de> | 2005-12-18 16:37:14 +0000 |
commit | 93da7fa203a8e4bce40aab590a8c245400013787 (patch) | |
tree | c661552164dd054a3b299d1e57672ad1880c49de | |
parent | 2c8859c8b51b10fd52b032aef54bb394e9acb011 (diff) |
Move enum to cairoint.h
add CAIRO_BEGIN_DECLS and CAIRO_END_DECLS, and move an enum from cairo-clip-private.h here (C++ doesn't like forward-declarations of enums). Final patch for allowing C++ backends.
reviewed by: cworth
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/cairo-clip-private.h | 6 | ||||
-rw-r--r-- | src/cairoint.h | 10 |
3 files changed, 19 insertions, 7 deletions
@@ -1,3 +1,13 @@ +2005-12-19 Christian Biesinger <cbiesinger@web.de> + + reviewed by: cworth + + * src/cairo-clip-private.h: Move enum to cairoint.h + * src/cairoint.h: add CAIRO_BEGIN_DECLS and CAIRO_END_DECLS, and + move an enum from cairo-clip-private.h here (C++ doesn't like + forward-declarations of enums). Final patch for allowing C++ + backends. + 2005-12-17 Christian Biesinger <cbiesinger@web.de> * configure.in: make the SVG backend freetype message actually mention SVG diff --git a/src/cairo-clip-private.h b/src/cairo-clip-private.h index dc35f870..91cc9e97 100644 --- a/src/cairo-clip-private.h +++ b/src/cairo-clip-private.h @@ -38,12 +38,6 @@ #include "cairo-path-fixed-private.h" -enum _cairo_clip_mode { - CAIRO_CLIP_MODE_PATH, - CAIRO_CLIP_MODE_REGION, - CAIRO_CLIP_MODE_MASK -}; - struct _cairo_clip_path { unsigned int ref_count; cairo_path_fixed_t path; diff --git a/src/cairoint.h b/src/cairoint.h index 1d626196..43e71b31 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -66,6 +66,8 @@ #include "cairo-debug.h" #include <pixman.h> +CAIRO_BEGIN_DECLS + #if __GNUC__ >= 3 && defined(__ELF__) # define slim_hidden_proto(name) slim_hidden_proto1(name, INT_##name) # define slim_hidden_def(name) slim_hidden_def1(name, INT_##name) @@ -249,7 +251,11 @@ typedef enum cairo_direction { } cairo_direction_t; typedef struct _cairo_path_fixed cairo_path_fixed_t; -typedef enum _cairo_clip_mode cairo_clip_mode_t; +typedef enum _cairo_clip_mode { + CAIRO_CLIP_MODE_PATH, + CAIRO_CLIP_MODE_REGION, + CAIRO_CLIP_MODE_MASK +} cairo_clip_mode_t; typedef struct _cairo_clip_path cairo_clip_path_t; typedef struct _cairo_clip cairo_clip_t; @@ -2167,4 +2173,6 @@ slim_hidden_proto(cairo_save) slim_hidden_proto(cairo_stroke_preserve) slim_hidden_proto(cairo_surface_destroy) +CAIRO_END_DECLS + #endif |