summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2017-03-17 21:34:08 +0100
committerWerner Lemberg <wl@gnu.org>2017-03-17 21:34:08 +0100
commite5595784f4075a631f3d6606cecc6dad3100d642 (patch)
treeb243b146084e6e28eca895257fd9f2b4e8166e67 /devel
parentbffb7fe90b1a3403ee253c30974beaa8ee436567 (diff)
downloadfreetype2-e5595784f4075a631f3d6606cecc6dad3100d642.tar.gz
Fix preprocessor warning.
* devel/ftoption.h, include/freetype/config/ftoption.h: Test whether TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined before checking its value.
Diffstat (limited to 'devel')
-rw-r--r--devel/ftoption.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/ftoption.h b/devel/ftoption.h
index b8b0a8d98..db661e7fc 100644
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -913,6 +913,7 @@ FT_BEGIN_HEADER
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
#define TT_USE_BYTECODE_INTERPRETER
+#ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
#if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 1
#define TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
#endif
@@ -921,6 +922,7 @@ FT_BEGIN_HEADER
#define TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL
#endif
#endif
+#endif
/*