<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>36576</bug_id>
          
          <creation_ts>2010-03-24 20:55:15 -0700</creation_ts>
          <short_desc>The function &quot;roundf&quot; included in math.h on solaris</short_desc>
          <delta_ts>2023-02-01 17:56:15 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>PlatformOnly</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simon">yuntong.jin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>roche+webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>203768</commentid>
    <comment_count>0</comment_count>
      <attachid>51590</attachid>
    <who name="Simon">yuntong.jin</who>
    <bug_when>2010-03-24 20:55:15 -0700</bug_when>
    <thetext>Created attachment 51590
The function &quot;roundf&quot; included in math.h on solaris

&quot;./WebCore/platform/graphics/FloatSize.h&quot;, line 134: Error: The function &quot;roundf&quot; must have a prototype.
&quot;./WebCore/platform/graphics/FloatSize.h&quot;, line 134: Error: The function &quot;roundf&quot; must have a prototype.
&quot;./WebCore/platform/graphics/FloatPoint.h&quot;, line 155: Error: The function &quot;roundf&quot; must have a prototype.
&quot;./WebCore/platform/graphics/FloatPoint.h&quot;, line 155: Error: The function &quot;roundf&quot; must have a prototype.
4 Error(s) detected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203839</commentid>
    <comment_count>1</comment_count>
      <attachid>51590</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-03-24 23:50:05 -0700</bug_when>
    <thetext>Comment on attachment 51590
The function &quot;roundf&quot; included in math.h on solaris

Every change requires a ChangeLog.  See http://webkit.org/coding/contributing.html.

I&apos;m not sure if MathExtras.h is supposed to include math.h or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>467849</commentid>
    <comment_count>2</comment_count>
    <who name="Xavier Roche">roche+webkit</who>
    <bug_when>2011-09-15 09:25:56 -0700</bug_when>
    <thetext>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) &amp;&amp; !OS(ANDROID) &amp;&amp; !OS(SYMBIAN)
+#if !COMPILER(MSVC) &amp;&amp; !OS(ANDROID) &amp;&amp; !OS(SYMBIAN) &amp;&amp; !OS(SOLARIS)
 using std::isfinite;
 using std::isinf;
 using std::isnan;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930263</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-01 14:07:03 -0800</bug_when>
    <thetext>Do we have Solaris port? Or we can close this unless if this is extended to any other linux port?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930333</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-02-01 17:56:15 -0800</bug_when>
    <thetext>OS(SOLARIS) is gone, and in any case, I&apos;d expect this to have been fixed since 2010 if it was still needed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>51590</attachid>
            <date>2010-03-24 20:55:15 -0700</date>
            <delta_ts>2010-06-11 10:31:05 -0700</delta_ts>
            <desc>The function &quot;roundf&quot; included in math.h on solaris</desc>
            <filename>2-MathExtras.diff</filename>
            <type>text/plain</type>
            <size>872</size>
            <attacher name="Simon">yuntong.jin</attacher>
            
              <data encoding="base64">ZGlmZiAtciBiNjVkMDA1N2EyZjMgSmF2YVNjcmlwdENvcmUvd3RmL01hdGhFeHRyYXMuaAotLS0g
YS9KYXZhU2NyaXB0Q29yZS93dGYvTWF0aEV4dHJhcy5oCVR1ZSBNYXIgMjMgMTg6NDk6MjkgMjAx
MCArMDgwMAorKysgYi9KYXZhU2NyaXB0Q29yZS93dGYvTWF0aEV4dHJhcy5oCVR1ZSBNYXIgMjMg
MTk6MDA6NTMgMjAxMCArMDgwMApAQCAtMTg2LDcgKzE4Niw3IEBACiBpbmxpbmUgZmxvYXQgcmFk
MmdyYWQoZmxvYXQgcikgeyByZXR1cm4gciAqIDIwMC4wZiAvIHBpRmxvYXQ7IH0KIGlubGluZSBm
bG9hdCBncmFkMnJhZChmbG9hdCBnKSB7IHJldHVybiBnICogcGlGbG9hdCAvIDIwMC4wZjsgfQog
Ci0jaWYgIUNPTVBJTEVSKE1TVkMpICYmICFDT01QSUxFUihSVkNUKSAmJiAhT1MoQU5EUk9JRCkg
JiYgIUNPTVBJTEVSKFdJTlNDVykKKyNpZiAhQ09NUElMRVIoTVNWQykgJiYgIUNPTVBJTEVSKFJW
Q1QpICYmICFPUyhBTkRST0lEKSAmJiAhQ09NUElMRVIoV0lOU0NXKSAmJiAhQ09NUElMRVIoU1VO
Q0MpCiB1c2luZyBzdGQ6OmlzZmluaXRlOwogdXNpbmcgc3RkOjppc2luZjsKIHVzaW5nIHN0ZDo6
aXNuYW47CmRpZmYgLXIgZDc0M2VmYWI0Y2I1IEphdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFz
LmgKLS0tIGEvSmF2YVNjcmlwdENvcmUvd3RmL01hdGhFeHRyYXMuaAlXZWQgTWFyIDI0IDE4OjE2
OjM5IDIwMTAgKzA4MDAKKysrIGIvSmF2YVNjcmlwdENvcmUvd3RmL01hdGhFeHRyYXMuaAlUaHUg
TWFyIDI1IDEwOjU1OjQzIDIwMTAgKzA4MDAKQEAgLTMyLDYgKzMyLDcgQEAKIAogI2lmIE9TKFNP
TEFSSVMpCiAjaW5jbHVkZSA8aWVlZWZwLmg+CisjaW5jbHVkZSA8bWF0aC5oPgogI2VuZGlmCiAK
ICNpZiBPUyhPUEVOQlNEKQo=
</data>
<flag name="review"
          id="34867"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>