Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (ak4719.spb.edu [127.0.0.1])
	by ak4719.spb.edu (8.12.1/8.12.1/Debian -5) with ESMTP id h4M7bmwv028059
	for <dron@localhost>; Thu, 22 May 2003 11:38:54 +0400
Received: from pop.in02.prd.whowhere.com [209.202.220.196]
	by localhost with POP3 (fetchmail-6.2.0)
	for dron@localhost (single-drop); Thu, 22 May 2003 11:38:54 +0400 (MSD)
Received: from gate7.olympiakos.com ([64.32.199.150]) by whowhere.com; Wed, 21 May 2003 21:23:58 -0000
X-Envelope-Sender: owner-tiff@olympiakos.com
Received: by gate7.olympiakos.com (Postfix, from userid 65534)
	id 80247110D5; Wed, 21 May 2003 17:23:49 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by gate7.olympiakos.com (Postfix) with SMTP
	id 63ED71108C; Wed, 21 May 2003 17:23:49 -0400 (EDT)
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 21 May 2003 17:23:28 -0400
Delivered-To: tiff-outgoing@gate7.olympiakos.com
Received: by gate7.olympiakos.com (Postfix, from userid 16)
	id 8C1F0110A2; Wed, 21 May 2003 17:23:28 -0400 (EDT)
Delivered-To: tiff@olympiakos.com
Received: from mail.nikondev.com (unknown [198.31.158.34])
	by gate7.olympiakos.com (Postfix) with ESMTP id 3D9B31108C
	for <tiff@olympiakos.com>; Wed, 21 May 2003 17:23:27 -0400 (EDT)
Received: from KG-DELL650.nikonisd.com (198.31.158.232) by 
 mail.nikondev.com with SMTP
 (Eudora Internet Mail Server 3.0.3) for <tiff@olympiakos.com>;
 Wed, 21 May 2003 17:23:27 -0400
From: Khouri Giordano <kgiordano@nikondev.com>
To: tiff@olympiakos.com
Subject: Win32 libtiff calling convention
Date: Wed, 21 May 2003 17:24:40 -0400
Organization: Nikon Electronic Imaging
Message-ID: <75rncv0p47knj9ssh0u7unp0cvbd6hvh2c@4ax.com>
X-Mailer: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ak4719.spb.edu id h4M7bmwv028059
Status: RO
X-Status: A
Content-Length: 1069
Lines: 31

I'm new to the list so forgive me if this has come up before.

Problem definition:

This only applies to win32 builds of libtiff. I am working with
version 3.6.0-beta.

Since the makefile.vc doesn't define any calling convention, cdecl is
used as a default. I prefer stddecl and use it as the default when
building my projects. When I link to libtiff, the linker can't match
up any of the TIFFXxx functions because the library and the
application where built using two different calling conventions.

Solution:

To tiffio.h I added a TIFFDECL define to explicitly use cdecl for
win32 builds. I used TIFFDECL in every function pointer typedef and
function prototype.

I would like to submit this to the libtiff project so everyone else
can have it, but have no idea how to go about this.

--

Khouri Giordano
Software Technology Researcher
Nikon Electronic Imaging | http://www.nikonusa.com/
kgiordano@nikondev.com

To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

