[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs

From: Jason Rumney
Subject: Re: [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs
Date: Wed, 11 Jun 2003 11:29:17 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210

Bruno Haible wrote:
Jason Rumney wrote:

If HAVE_TZNAME means what I think it does, then the Windows port
should define it.  The problem in this case is that the declaration
in strftime.c conflicts with the one in <time.h> when built with
MingW32, because of the fact that tzname[] actually resides within a
shared library, so its method of dereferencing is not normal.

Would it work to add
    #define tzname (*tzname)
to the config.h for mingw in this case?

No, in the system headers, tzname is defined as

__MINGW_IMPORT char     *tzname[2];

The conflict is with the __MINGW_IMPORT, which is missing in the
extern declaration in strftime.h

I wonder why you need to redeclare tzname[] there, do header files not
already declare it on platforms where HAVE_TZNAME is defined?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]