summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2015-10-18 18:15:04 +0200
committerWerner Lemberg <wl@gnu.org>2015-10-18 18:15:04 +0200
commit14213b54099dac557c9181922c45c258a32f0185 (patch)
tree95749f54a674d56e70e4b8a02209f901ff7d9a59 /devel
parentdcfc4d9c2184bd36dacf73c1a9f331e98aa8ed1d (diff)
downloadfreetype2-14213b54099dac557c9181922c45c258a32f0185.tar.gz
[truetype] Improve TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES (#46223).
* devel/ftoption.h, include/freetype/config/ftoption.h: Surround it with #ifndef ... #endif, as suggested in the tracker issue.
Diffstat (limited to 'devel')
-rw-r--r--devel/ftoption.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/devel/ftoption.h b/devel/ftoption.h
index 0eb832405..f68b3adec 100644
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -700,7 +700,14 @@ FT_BEGIN_HEADER
/* want to change this except for very special situations (e.g., making */
/* a library fuzzer spend less time to handle broken fonts). */
/* */
+ /* It is not expected that this value is ever modified by a configuring */
+ /* script; instead, it gets surrounded with #ifndef ... #endif so that */
+ /* the value can be set as a preprocessor option on the compiler's */
+ /* command line. */
+ /* */
+#ifndef TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES
#define TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES 1000000L
+#endif
/*************************************************************************/