summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ralls <jralls@ceridwen.us>2017-04-30 15:34:26 -0700
committerMurray Cumming <murrayc@murrayc.com>2017-05-02 09:29:52 +0200
commit3348f6e71861ad381fea6dceb46ce541ebe81e85 (patch)
treecbae67664ae8f4216c10eb76f1e7b4792b60cc07
parent7fb53c096ac5d7b6b4b596c529461aa4aa8cf8be (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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cairomm/enums.h b/cairomm/enums.h
index 4611c4a..0a92f32 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
{
@@ -188,6 +190,7 @@ typedef enum
*
* @since 1.12
*/
+#ifdef CAIRO_HAS_FT_FONT
enum FtSynthesize {
/// Embolden the glyphs (redraw with a pixel offset)
@@ -206,7 +209,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