Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas019.isp.belgacom.be (localhost [127.0.0.1])
        by inav022.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k31J53X1028367
        for <joris.at.lebbeke@skynet.be>; Sat, 1 Apr 2006 21:05:03 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.5.90])
        by inas019.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k31J4xDN017687
        for <joris.at.lebbeke@skynet.be>; Sat, 1 Apr 2006 21:05:02 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx012.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k31J4ohn015463
        for <joris.at.lebbeke@skynet.be>; Sat, 1 Apr 2006 21:04:51 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k31IuO67014413;
	Sat, 1 Apr 2006 13:57:23 -0500
Received: from web37309.mail.mud.yahoo.com (web37309.mail.mud.yahoo.com
	[209.191.87.47])
	by duke.maptools.org (8.12.11/8.12.10) with SMTP id k31IuNgx014410
	for <tiff@lists.maptools.org>; Sat, 1 Apr 2006 13:56:23 -0500
Received: (qmail 61851 invoked by uid 60001); 1 Apr 2006 18:56:22 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=yphAt87YXBTwg8Q5cnxaRFn595gWHNVckl98DQ0ahRoYvFAF3qio/0PYDPXdRK7hMcy1IZ1IkiFhgT348M9p1rHb2qualh0K6ZaqLx2+/GXgY+4szPqjYCWT/BP0bseeRe2+M0vQi4CBwIr8VH3ibPI6e8caIAw5u+Pjhj3dlMA=
	; 
Message-ID: <20060401185622.61849.qmail@web37309.mail.mud.yahoo.com>
Received: from [68.123.28.116] by web37309.mail.mud.yahoo.com via HTTP;
	Sat, 01 Apr 2006 10:56:22 PST
Date: Sat, 1 Apr 2006 10:56:22 -0800 (PST)
From: ping shu <pingshu2005@yahoo.com>
Subject: Re: [Tiff] WORDS_BIGENDIAN makes libtiff platform dependent (3.8.2)
	and you have to undefine it on MacTel
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
In-Reply-To: <Pine.SOC.4.60.0603312319180.26551@blade.simplesystems.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.000014ae
X-MSP-STORE: Sat, 01 Apr 2006 21:05:03 +0200
Status:   



--- Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
wrote:
> >    Version 3.8.2 requires WORDS_BIGENDIAN Defined
or
> > UNdefined correctly now. I think it is a bad
thing. I
> > had code that worked on Win, Mac/PPC, MacTel, now
the
> > Mac/PPC is broken unless I define WORD_BIGENDIAN
to 1
> > and UNdefine it on Mactel.
> >
> >    Can we get rid of such dependecy?
> >    There are code that uses libtiff but doesn't
use
> > the "config" utility.
> 
> Libtiff itself has this dependency, but not the
> public headers which 
> should be used by dependent applications.  What
> header are you 
> including which brings in the WORD_BIGENDIAN
> requirement?
> 
> I am pretty sure that pre-configure libtiff also
> depended on an endian 
> define, but the name was different.
> 
> Bob

Yes, an app shoudl be fine if it uses the public
header
files and system installed libtiff. If an app builds
the
libtiff (e.g. porting to a Portable Media Player),
then
the developers may think twice upgrading to 3.8.2.

A related issue I found is the use of
#ifdef WORDS_BIGENDIAN
...1
#else
...2
#endif

Section 1 is used if you do
#define WORDS_BIGENDIAN 0
and hope for section 2. The other def HOST_ENDIAN is
not
in use and it is either 0 or 1.

The use of WORDS_ENDIAN doesn't really improve
performance.

Ping



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
