Use isfinite() instead of finite() when available

Anthony Ramine <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <[email protected]>
Hello,

This fixes the following warning on Mac OS X 10.9 Mavericks:

hipe/hipe_bif0.c:1025:10: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
    if (!finite(p->hipe.float_result)) {
         ^
/usr/include/math.h:718:12: note: 'finite' declared here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^

	git fetch https://github.com/nox/otp isfinite

	https://github.com/nox/otp/compare/isfinite
	https://github.com/nox/otp/compare/isfinite.patch

Regards,

-- 
Anthony Ramine

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.