[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] ft2.2 win32 intel c++ patch
From: |
luoyi |
Subject: |
[ft] ft2.2 win32 intel c++ patch |
Date: |
Mon, 3 Apr 2006 14:56:44 +0800 |
Hi, I've just try to use icl to build ft2.2, and fount it need some
minor modify.
First, my intel c++ version:
C:\Documents and Settings\luoyi\×ÀÃæ>icl
Intel(R) C++ Compiler for 32-bit applications, Version 9.0 Build
20050430Z Package ID: W_CC_P_9.0.019
Copyright (C) 1985-2005 Intel Corporation. All rights reserved.
icl: Command line error: no files specified; for help type "icl -help"
and first in makefile, icl use /Fe to get execute-files and /Fo to get
object files.
second, in ftcbasic.c, without the patch, icl will ICE. just refer to
my patch to get more infor.
Patch:
Index: builds/compiler/intelc.mk
===================================================================
RCS file: /cvsroot/freetype/freetype2/builds/compiler/intelc.mk,v
retrieving revision 1.4
diff -u -r1.4 intelc.mk
--- builds/compiler/intelc.mk 1 Feb 2006 07:52:10 -0000 1.4
+++ builds/compiler/intelc.mk 3 Apr 2006 06:45:28 -0000
@@ -54,6 +54,7 @@
# Target flag.
#
T := /Fo
+TE := /Fe
# C flags
@@ -73,7 +74,7 @@
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := /Qansi /Za
+ANSIFLAGS := /Qansi_alias /Za
# Library linking
#
Index: src/cache/ftcbasic.c
===================================================================
RCS file: /cvsroot/freetype/freetype2/src/cache/ftcbasic.c,v
retrieving revision 1.20
diff -u -r1.20 ftcbasic.c
--- src/cache/ftcbasic.c 20 Mar 2006 12:10:24 -0000 1.20
+++ src/cache/ftcbasic.c 3 Apr 2006 06:49:14 -0000
@@ -264,9 +264,14 @@
ftc_basic_family_load_glyph
};
+#ifdef __INTEL_COMPILER
+#define CONST_AUX
+#else
+#define CONST_AUX const
+#endif
FT_CALLBACK_TABLE_DEF
- const FTC_GCacheClassRec ftc_basic_image_cache_class =
+ CONST_AUX FTC_GCacheClassRec ftc_basic_image_cache_class =
{
{
ftc_inode_new,
- [ft] ft2.2 win32 intel c++ patch,
luoyi <=