X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47515001.FCA1BA10@dessent.net>
Date: Sat, 01 Dec 2007 04:13:53 -0800
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Failure in building GFortran on Cygwin
References: <Pine.CYG.4.58.0711292328360.1532@homepc> <474F61CD.1060405@verizon.net> <20071130142008.GX30894@calimero.vinschen.de> <47501D95.3030200@byu.net> <20071130145842.GY30894@calimero.vinschen.de> <20071130213601.GC24092@ednor.casa.cgf.cx> <20071201103155.GZ30894@calimero.vinschen.de> <4751420F.F35239F3@dessent.net> <20071201120032.GB30894@calimero.vinschen.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:

[ snip sensible explanation that I had actually ran into in the past and
then forgotten about ]

> > Or is pulluting the namespace with a macro called "timezone" too
> > hideous?  In that case we could try declaring it "extern long timezone
> > asm("_timezone");" in the header.
> 
> Erm... sorry if my lack of assembler inlining shows, but that really
> works?  If so, it looks like a rather elegant solution to me.  I'll give
> it a try.

Oops, I think it should be asm("__timezone") with two leading
underscores, as specifying the assembler name like this bypasses the
compiler automatically adding one.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

