From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Problem with library images on Windows (again) Date: Fri, 20 May 2005 13:01:15 +0300 Message-ID: <01c55d23$Blat.v2.4$01c73c40@zahav.net.il> References: <01c55c26$Blat.v2.4$0ef86680@zahav.net.il> <01c55ca5$Blat.v2.4$dd149500@zahav.net.il> <01c55d0c$Blat.v2.4$8d418800@zahav.net.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1116587090 4190 80.91.229.2 (20 May 2005 11:04:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 11:04:50 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 20 13:04:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZ5Hi-0006u3-QW for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 13:03:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZ5KX-0004B7-S4 for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 07:06:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZ4Tp-0007A9-Rs for emacs-devel@gnu.org; Fri, 20 May 2005 06:11:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZ4To-00078H-Gt for emacs-devel@gnu.org; Fri, 20 May 2005 06:11:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZ4Th-0006ew-Qr for emacs-devel@gnu.org; Fri, 20 May 2005 06:11:37 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DZ4Vi-00054p-Pz for emacs-devel@gnu.org; Fri, 20 May 2005 06:13:44 -0400 Original-Received: from zaretski (IGLD-83-130-247-87.inter.net.il [83.130.247.87]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id BGX28687 (AUTH halo1); Fri, 20 May 2005 13:04:37 +0300 (IDT) Original-To: storm@cua.dk X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: (storm@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37384 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37384 > Cc: Juanma Barranquero , emacs-devel@gnu.org > From: storm@cua.dk (Kim F. Storm) > Date: Fri, 20 May 2005 10:24:55 +0200 > > Could it be that the following define need to specify "Pascal" somewhere > for the tiff library? > > #define DEF_IMGLIB_FN(func) FARPROC fn_##func I think it should be something else. First, from Juanma's investigations it looks like MSVC already thinks those functions use the Pascal ABI. Second, the MinGW compiler does produce correct code, so the fix should be only for MSVC (perhaps some preprocessor macro works for GCC, but not MSVC). And third, I think the right qualifiers are __stdcall vs __cdecl, not "Pascal". I asked to see the relevant fragments from libtiff headers used during the compilation so that we could figure out what goes wrong there.