Closed
Bug 682319
Opened 13 years ago
Closed 13 years ago
use C99 isfinite() on OS X
Categories
(Core :: XPCOM, defect)
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.
Assignee | ||
Updated•13 years ago
|
Whiteboard: [iOS]
Assignee | ||
Comment 1•13 years ago
|
||
This builds fine for me on iOS and OS X.
Attachment #556057 -
Flags: review?(bzbarsky)
Comment 2•13 years ago
|
||
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+
Assignee | ||
Comment 3•13 years ago
|
||
Updated patch. I changed the #define around and added a comment.
Assignee | ||
Updated•13 years ago
|
Attachment #556057 -
Attachment is obsolete: true
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/projects/build-system/rev/80b591f7b135
Whiteboard: [iOS] → [iOS] fixed-in-bs
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.
Description
•