components/desktop/firefox/patches/firefox-10-webaudio_math.patch
branchs11u3-sru
changeset 7035 4c2f26e9d5ab
equal deleted inserted replaced
7034:55c87002c655 7035:4c2f26e9d5ab
       
     1 This allows us to get some function from math.h that other platforms are
       
     2 getting elsewhere.
       
     3 Can potentially send upstream with ifdef Solaris statement.
       
     4 
       
     5 diff --git a/dom/media/webaudio/ThreeDPoint.h b/dom/media/webaudio/ThreeDPoint.h
       
     6 --- a/dom/media/webaudio/ThreeDPoint.h
       
     7 +++ b/dom/media/webaudio/ThreeDPoint.h
       
     8 @@ -8,6 +8,7 @@
       
     9  #define ThreeDPoint_h_
       
    10   
       
    11  #include <cmath>
       
    12 +#include <math.h>
       
    13  #include <algorithm>
       
    14  
       
    15  namespace mozilla {
       
    16 diff --git a/dom/media/webaudio/blink/DenormalDisabler.h b/dom/media/webaudio/blink/DenormalDisabler.h        
       
    17 --- a/dom/media/webaudio/blink/DenormalDisabler.h
       
    18 +++ b/dom/media/webaudio/blink/DenormalDisabler.h
       
    19 @@ -27,6 +27,7 @@
       
    20  
       
    21  #define _USE_MATH_DEFINES
       
    22  #include <cmath>
       
    23 +#include <math.h>
       
    24  #include <float.h>
       
    25  
       
    26  namespace WebCore {