-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 2/24/2007 7:08 PM:
> Cygwin:      isnan() is a function, defined in cygwin.dll

No, on cygwin, isnan is a macro in <math.h> that wraps the internal
functions __isnan{,lf}, and the isnan entry point in cygwin1.dll exists
only for backwards compatibility for multi-year-old apps that were
compiled against cygwin prior to the POSIX compliance bug being fixed of
providing isnan only as a macro.  And you still didn't catch my point that
on cygwin, you don't need -lm to get isnan() to work, whether or not it is
an exported function, since modern code should not be linking against the
entry point isnan on cygwin anyways.  Checking AC_CHECK_FUNC([isnan]) is
wrong since POSIX does not guarantee that isnan is a function; instead,
you must check whether including <math.h> and using isnan() will link
correctly in the absence of -lm.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4PeB84KuGfSFAYARAmNXAJ9EcgCWHP7yZWuPYe5dHjJzAZVE/gCfcojf
EhJR2e9ugLNQkbQACW2e4xM=
=nYab
-----END PGP SIGNATURE-----


Reply via email to