WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
36576
The function "roundf" included in math.h on solaris
https://bugs.webkit.org/show_bug.cgi?id=36576
Summary
The function "roundf" included in math.h on solaris
Simon
Reported
2010-03-24 20:55:15 PDT
Created
attachment 51590
[details]
The function "roundf" included in math.h on solaris "./WebCore/platform/graphics/FloatSize.h", line 134: Error: The function "roundf" must have a prototype. "./WebCore/platform/graphics/FloatSize.h", line 134: Error: The function "roundf" must have a prototype. "./WebCore/platform/graphics/FloatPoint.h", line 155: Error: The function "roundf" must have a prototype. "./WebCore/platform/graphics/FloatPoint.h", line 155: Error: The function "roundf" must have a prototype. 4 Error(s) detected.
Attachments
The function "roundf" included in math.h on solaris
(872 bytes, patch)
2010-03-24 20:55 PDT
,
Simon
eric
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2010-03-24 23:50:05 PDT
Comment on
attachment 51590
[details]
The function "roundf" included in math.h on solaris Every change requires a ChangeLog. See
http://webkit.org/coding/contributing.html
. I'm not sure if MathExtras.h is supposed to include math.h or not.
Xavier Roche
Comment 2
2011-09-15 09:25:56 PDT
Also required for GCC. Hence I would suggest: --- src/3rdparty/webkit/JavaScriptCore/wtf/MathExtras.h.orig Wed Sep 14 13:22:06 2011 +++ src/3rdparty/webkit/JavaScriptCore/wtf/MathExtras.h Wed Sep 14 11:58:35 2011 @@ -190,7 +190,7 @@ inline float rad2grad(float r) { return r * 200.0f / piFloat; } inline float grad2rad(float g) { return g * piFloat / 200.0f; } -#if !COMPILER(MSVC) && !OS(ANDROID) && !OS(SYMBIAN) +#if !COMPILER(MSVC) && !OS(ANDROID) && !OS(SYMBIAN) && !OS(SOLARIS) using std::isfinite; using std::isinf; using std::isnan;
Ahmad Saleem
Comment 3
2023-02-01 14:07:03 PST
Do we have Solaris port? Or we can close this unless if this is extended to any other linux port?
Alexey Proskuryakov
Comment 4
2023-02-01 17:56:15 PST
OS(SOLARIS) is gone, and in any case, I'd expect this to have been fixed since 2010 if it was still needed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug