freetype-devel
[Top][All Lists]
Advanced

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

[Devel] MacOS X and FT_New_Face


From: Derk-Jan Hartman
Subject: [Devel] MacOS X and FT_New_Face
Date: Tue, 6 May 2003 22:22:09 +0200

I ran into this problem.
Riccardo Cohen wrote:
with my version (2.1.2) I had to comment the line 112 #define FT_MACINTOSH 1 in file include/freetype/config/ftconfig.h because this line make it consider macosx like macos9 from the ft_new_face point of view, which is wrong.
It seems this definition is encapsulated in a test. The code is:
#if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
   #define FT_MACINTOSH 1
   #endif

We probably need a better test to disable this on MacOS-X.
Or should we compiled *both* FT_New_Face and the MacOS specific APIs
on MacOS-X ? (A small new configuration macro would be required then,
but that's nothing really difficult).

Any ideas ?

May i suggest the following construction ???
__APPLE__ && !(__mach__ )
That would keep it undefined on the OSX platform when you compile it as unix code.
which is at least better then the current situation.

DJ

---
Videolan - VLC media player
Derk-Jan Hartman (address@hidden)
Co-Developer of the MacOS X port of vlc
http://www.videolan.org/vlc




reply via email to

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