Closed Bug 682319 Opened 13 years ago Closed 13 years ago

use C99 isfinite() on OS X

Categories

(Core :: XPCOM, defect)

ARM
iOS 4
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: ted, Assigned: ted)

Details

(Whiteboard: [iOS] fixed-in-bs)

Attachments

(1 file, 1 obsolete file)

math.h in the OS X SDK says about finite:
/* Legacy API: please use C99 isfinite() instead. */

It's not present in the iOS SDK. I'm not sure if it's safe to totally replace finite with isfinite, since the latter is C99, and glibc might not make it available in non-C99 mode. My patch just uses it on OS X, where it should always be available.
Whiteboard: [iOS]
This builds fine for me on iOS and OS X.
Attachment #556057 - Flags: review?(bzbarsky)
Comment on attachment 556057 [details] [diff] [review]
use C99 isfinite on OS X, since finite is deprecated (and not present on iOS)

This seems fine, though a comment explaining why might be nice.
Attachment #556057 - Flags: review?(bzbarsky) → review+
Updated patch. I changed the #define around and added a comment.
Attachment #556057 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/80b591f7b135
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: