bug-gnulib
[Top][All Lists]
Advanced

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

Re: fseeko and cygwin


From: Bruno Haible
Subject: Re: fseeko and cygwin
Date: Mon, 3 Dec 2007 13:14:59 +0100
User-agent: KMail/1.9.1

Eric Blake wrote:
>    /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
> +     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, at the
> +     same time that cygwin fixed the declaration of "long timezone" to no
> +     longer be a macro, so we use that as a compile-time test for
> +     cross-compiles rather than building a runtime test.  */
> +# define timezonevar
> +# include <sys/time.h>
> +# ifdef timezone
> +  choke me
> +# endif

Wouldn't it be simpler, and easier to understand, to just use the version
numbers CYGWIN_VERSION_DLL_MAJOR, CYGWIN_VERSION_DLL_MINOR from
<cygwin/version.h>?

It's in autoconf's spirit to not test version numbers if you can test the
feature itself (in this case: some feature of stdio). But testing another
unrelated feature?

Bruno




reply via email to

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