[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems
From: |
Sean McBride |
Subject: |
Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems |
Date: |
Tue, 1 Jul 2008 17:33:13 -0400 |
On 7/1/08 10:19 PM, Werner LEMBERG said:
>> Can freetype use C99 features?
>
>Not in general, but I don't object to put it into proper
>#ifdef...#endif blocks -- AFAIK, C99 can be checked by a preprocessor
>macro, right?
Yes. __STDC_VERSION__ is defined as 199901L. See for example:
<http://lists.debian.org/debian-mentors/2002/10/msg00216.html>
Currently freetype has things like:
#if FT_SIZEOF_INT == (32 / FT_CHAR_BIT)
typedef signed int FT_Int32;
typedef unsigned int FT_UInt32;
#elif FT_SIZEOF_LONG == (32 / FT_CHAR_BIT)
typedef signed long FT_Int32;
typedef unsigned long FT_UInt32;
#else
#error "no 32bit type found -- please check your configuration files"
#endif
In C99 this could simply be:
typedef int32_t FT_Int32;
typedef uint32_t FT_UInt32;
No size testing required. No problems with cross compilation nor
universal binaries.
--
____________________________________________________________
Sean McBride, B. Eng address@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
- Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems, Sean McBride, 2008/07/01
- Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems, Werner LEMBERG, 2008/07/01
- Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems,
Sean McBride <=
- Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems, Werner LEMBERG, 2008/07/02
- Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems, mpsuzuki, 2008/07/02
- [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, mpsuzuki, 2008/07/04
- [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, mpsuzuki, 2008/07/04
- [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, Werner LEMBERG, 2008/07/06
- [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, mpsuzuki, 2008/07/07
- [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, Peter Breitenlohner, 2008/07/07
- [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, mpsuzuki, 2008/07/07
- Re: [ft-devel] Re: freetype-2.3.7 -- ftconfig.h for biarch systems, David Turner, 2008/07/16
- Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems, Antoine Leca, 2008/07/08