* src/base/ftcalc.c, include/freetype/internal/ftcalc.h (FT_MulDiv_No_Round): Surround code with `#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
diff --git a/ChangeLog b/ChangeLog
index c6c78c4..aeea128 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-25 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c, include/freetype/internal/ftcalc.h
+ (FT_MulDiv_No_Round): Surround code with `#ifdef
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.
+
2003-11-23 Werner Lemberg <wl@gnu.org>
* src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and
diff --git a/include/freetype/internal/ftcalc.h b/include/freetype/internal/ftcalc.h
index 73fc555..7866c46 100644
--- a/include/freetype/internal/ftcalc.h
+++ b/include/freetype/internal/ftcalc.h
@@ -60,6 +60,8 @@ FT_BEGIN_HEADER
/*************************************************************************/
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
/*************************************************************************/
/* */
/* <Function> */
@@ -88,6 +90,8 @@ FT_BEGIN_HEADER
FT_Long b,
FT_Long c );
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
#define INT_TO_F26DOT6( x ) ( (FT_Long)(x) << 6 )
#define INT_TO_F2DOT14( x ) ( (FT_Long)(x) << 14 )
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index 82cbcaa..f801cc4 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -155,6 +155,8 @@
}
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
/* documentation is in ftcalc.h */
FT_BASE_DEF( FT_Long )
@@ -177,6 +179,8 @@
return ( s > 0 ) ? d : -d;
}
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
/* documentation is in freetype.h */
@@ -347,6 +351,8 @@
}
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
FT_BASE_DEF( FT_Long )
FT_MulDiv_No_Round( FT_Long a,
FT_Long b,
@@ -379,6 +385,8 @@
return ( s < 0 ? -a : a );
}
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
/* documentation is in freetype.h */