Commit c6bdee5f27c4ba6a49d781e26ae686d3512e8f56

Suzuki, Toshiya (鈴木俊哉) 2008-09-30T00:59:55

* Fix the conditions for multi build on MacOS

diff --git a/ChangeLog b/ChangeLog
index e0bd9d5..09486ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	* src/base/Jamfile: Add target for multi build by jam on Mac OS X.
+	* src/base/ftobjs.c (FT_New_Face): Fix the condition to include
+	this function for MPW building. It is synchronized the condition
+	to include ftmac.c source into ftbase.c.
+
 2008-09-22  Werner Lemberg  <wl@gnu.org>
 
 	* src/cff/cffgload.c (CFF_Operator, cff_argument_counts,
diff --git a/src/base/Jamfile b/src/base/Jamfile
index e025769..3734a25 100644
--- a/src/base/Jamfile
+++ b/src/base/Jamfile
@@ -46,5 +46,12 @@ if $(MAC)
 {
   Library  $(FT2_LIB) : ftmac.c ;
 }
+else if $(OS) = MACOSX
+{
+  if $(FT2_MULTI)
+  {
+    Library  $(FT2_LIB) : ftmac.c ;
+  }
+}
 
 # end of src/base Jamfile
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 026691e..2b49b2f 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1117,7 +1117,7 @@
   /* there's a Mac-specific extended implementation of FT_New_Face() */
   /* in src/base/ftmac.c                                             */
 
-#ifndef FT_MACINTOSH
+#if !defined( __APPLE__ ) || defined( DARWIN_NO_CARBON )
 
   /* documentation is in freetype.h */
 
@@ -1140,7 +1140,7 @@
     return FT_Open_Face( library, &args, face_index, aface );
   }
 
-#endif  /* !FT_MACINTOSH */
+#endif  /* defined( __APPLE__ ) && !defined( DARWIN_NO_CARBON ) */
 
 
   /* documentation is in freetype.h */