[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: |
mpsuzuki |
Subject: |
Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems |
Date: |
Thu, 17 Jul 2008 10:46:09 +0900 |
Dear Sir,
I'm glad to hear your comment and thank you for spending
your time about this issue. I have to reply another post
from you but it requires more consideration.
On Wed, 16 Jul 2008 12:35:07 +0200
"David Turner" <address@hidden> wrote:
>Generally speaking, this is what <ft2build.h> should be used for.
Excuse me, unmodified ft2build.h just defines like this.
#ifndef __FT2_BUILD_GENERIC_H__
#define __FT2_BUILD_GENERIC_H__
#include <freetype/config/ftheader.h>
#endif /* __FT2_BUILD_GENERIC_H__ */
Do you propose to insert some conditionals into here? Like...
#ifndef __FT2_BUILD_GENERIC_H__
#define __FT2_BUILD_GENERIC_H__
#if ... /* Conditional_for_arch_1 */
#include <freetype/config/arch_1/ftheader.h>
#elif ... /* Conditional_for_arch_2 */
#include <freetype/config/arch_1/ftheader.h>
#elif ...
#endif /* __FT2_BUILD_GENERIC_H__ */
Regards,
mpsuzuki
>it should include either a 32-bit or 64-bit version of ftconfig.h depending
>on
>the compiling environment. Ideally, this should be the only file that knows
>about OS-specific files like <bits/wordsize.h>
>
>- David
>
>2008/6/30 Peter Breitenlohner <address@hidden>:
>
>> Hi,
>>
>> For various reasons I have to install on our linux-x86_84 systems
>> the 64 bit version of libfreetype (in /usr/lib64/) as well as the
>> 32 bit (linux-i686) version (in /usr/lib/).
>>
>> So far, no problem.
>>
>> However, the headers installed in /usr/include/freetype2/freetype/ differ
>> at
>> one point:
>>
>> config/ftconfig.h contains (SIZEOF_LONG being replaced by 8 or 4)
>> #define FT_SIZEOF_LONG 8
>> for the 64 bit version, and
>> #define FT_SIZEOF_LONG 4
>> for the 32 bit version.
>>
>> Of course, the same kind of problem occurs for other biarch systems such as
>> ppc/ppc64, sparc32/sparc64, etc.
>>
>> In order to have headers usable for both 32 and 64 bit mode, that ought to
>> be replaced by something like
>>
>> (1) for systems with <bits/wordsize.h> (should include all biarch systems)
>>
>> #include <bits/wordsize.h>
>> #if __WORDSIZE == 64
>> #define FT_SIZEOF_LONG 8
>> #else
>> #define FT_SIZEOF_LONG 4
>> #endif
>>
>> (2) for systems without <bits/wordsize.h>
>>
>> #define FT_SIZEOF_LONG SIZEOF_LONG
>>
>> Getting this result might require some autoconf magic, but should not be
>> overly difficult.
>>
>> Best regards
>> Peter Breitenlohner <address@hidden>
>>
>>
>> _______________________________________________
>> Freetype-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/freetype-devel
>>
>
Re: [ft-devel] freetype-2.3.7 -- ftconfig.h for biarch systems, Antoine Leca, 2008/07/09
Re: [ft-devel] 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,
mpsuzuki <=