freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] "comp" is reserved word in Apple SC compiler?


From: mpsuzuki
Subject: Re: [ft-devel] "comp" is reserved word in Apple SC compiler?
Date: Fri, 28 Oct 2005 13:11:51 +0900

Dear Sirs,

Thanks to all who posted this issue. I'm very happy
to receive helpful infos about unknown keyword "comp".
I will take a look in mpw-devel mailing list, too.

As Werner has already pointed out, I think the solution
(pass "-ansi strict" option to SC) proposed by Christian
Demmer looks most reasonable. Following to his proposal,
I could compile FreeType.

However, a few explicit typecasts are needed in ftmac.c
like this. I think it's acceptable.

--- orig/src/base/ftmac.c
+++ mod/src/base/ftmac.c
@@ -838,8 +838,8 @@
     OSStatus              status = FMCreateFontFamilyIterator( NULL, NULL,
                                                                options,
                                                                &famIter );
-    FMFont                the_font = NULL;
-    FMFontFamily          family   = NULL;
+    FMFont                the_font = ( FMFont ) NULL;
+    FMFontFamily          family   = ( FMFontFamily ) NULL;
 
 
     *face_index = 0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]