Commit 6f20dd505f5847eb3d808a6ddb58a7756cbb225e

Werner Lemberg 2003-11-26T08:24:08

* src/base/ftcalc.c, include/freetype/internal/ftcalc.h (FT_MulDiv_No_Round): Surround code with `#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.

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 */