isnan() and isinf() checks

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Apr 12 05:55:31 BST 2007


Hasso Tepper schrieb:
> The C99 standard says that isinf and isnan are macros, but reality is
> more complex. These might be functions in some systems (glibc has even
> both!) and might require -lm. At the moment we only check whether
> function exists and in the trunk we don't use -lm for check either.
> 
> Attached are patches to fix the problem for both KDE3 and KDE4. As a
> side effect it also fixes detecting (_)finite in KDE4 for platforms
> where it requires -lm.
> 
> Patches are tested on Linux and DragonFlyBSD. If noone objects, I will
> commit tomorrow.
> 
libm is not available on win32 and I wonder if it's a good idea to reset 
CMAKE_REQUIRED_LIBRARIES is a good idea.

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070412/4402393a/attachment.sig>


More information about the kde-core-devel mailing list