diff options
author | John Ralls <jralls@ceridwen.us> | 2017-04-30 15:34:26 -0700 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-05-02 09:36:10 +0200 |
commit | 1d9319bf7df892accc27c6c304d7b2bbb213c9af (patch) | |
tree | 4565a9bcb66d549c1862cb68d710796af36c4ab6 | |
parent | fb89ec72e65f55511dc81f0ec58513cc5db13f70 (diff) |
enums.h: Guard the FT-specific include and the enum with an ifdef.
To fix the build if there is no cairo-ft present. Bug #100894.
-rw-r--r-- | cairomm/enums.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cairomm/enums.h b/cairomm/enums.h index 548a7f3..0408efd 100644 --- a/cairomm/enums.h +++ b/cairomm/enums.h @@ -20,7 +20,9 @@ #define __CAIROMM_ENUMS_H #include <cairo.h> +#ifdef CAIRO_HAS_FT_FONT #include <cairo-ft.h> +#endif //CAIRO_HAS_FT_FONT namespace Cairo { @@ -828,6 +830,7 @@ typedef enum * * @since 1.12 */ +#ifdef CAIRO_HAS_FT_FONT enum FtSynthesize { /// Embolden the glyphs (redraw with a pixel offset) @@ -846,7 +849,7 @@ inline FtSynthesize operator&(FtSynthesize a, FtSynthesize b) { return static_cast<FtSynthesize>(static_cast<int>(a) & static_cast<int>(b)); } - +#endif //CAIRO_HAS_FT_FONT } // namespace Cairo #endif //__CAIROMM_ENUMS_H |