libm: Watcom defines huge=__huge: undefine it to fix build using Watcom.
authorOzkan Sezer
Sun, 18 Nov 2018 11:50:20 +0300
changeset 124204a6c91d9cc33
parent 12419 8fd9d8eeb968
child 12421 144400e4630d
libm: Watcom defines huge=__huge: undefine it to fix build using Watcom.
src/libm/e_exp.c
src/libm/e_pow.c
src/libm/s_atan.c
src/libm/s_floor.c
src/libm/s_scalbn.c
     1.1 --- a/src/libm/e_exp.c	Sun Nov 18 11:50:02 2018 +0300
     1.2 +++ b/src/libm/e_exp.c	Sun Nov 18 11:50:20 2018 +0300
     1.3 @@ -75,6 +75,10 @@
     1.4  #include "math_libm.h"
     1.5  #include "math_private.h"
     1.6  
     1.7 +#ifdef __WATCOMC__ /* Watcom defines huge=__huge */
     1.8 +#undef huge
     1.9 +#endif
    1.10 +
    1.11  static const double
    1.12  one	= 1.0,
    1.13  halF[2]	= {0.5,-0.5,},
     2.1 --- a/src/libm/e_pow.c	Sun Nov 18 11:50:02 2018 +0300
     2.2 +++ b/src/libm/e_pow.c	Sun Nov 18 11:50:20 2018 +0300
     2.3 @@ -63,6 +63,10 @@
     2.4  #pragma warning ( disable : 4756 )
     2.5  #endif
     2.6  
     2.7 +#ifdef __WATCOMC__ /* Watcom defines huge=__huge */
     2.8 +#undef huge
     2.9 +#endif
    2.10 +
    2.11  static const double
    2.12  bp[] = {1.0, 1.5,},
    2.13  dp_h[] = { 0.0, 5.84962487220764160156e-01,}, /* 0x3FE2B803, 0x40000000 */
     3.1 --- a/src/libm/s_atan.c	Sun Nov 18 11:50:02 2018 +0300
     3.2 +++ b/src/libm/s_atan.c	Sun Nov 18 11:50:20 2018 +0300
     3.3 @@ -60,6 +60,10 @@
     3.4    1.62858201153657823623e-02, /* 0x3F90AD3A, 0xE322DA11 */
     3.5  };
     3.6  
     3.7 +#ifdef __WATCOMC__ /* Watcom defines huge=__huge */
     3.8 +#undef huge
     3.9 +#endif
    3.10 +
    3.11  static const double
    3.12  one   = 1.0,
    3.13  huge   = 1.0e300;
     4.1 --- a/src/libm/s_floor.c	Sun Nov 18 11:50:02 2018 +0300
     4.2 +++ b/src/libm/s_floor.c	Sun Nov 18 11:50:20 2018 +0300
     4.3 @@ -24,6 +24,10 @@
     4.4  #include "math_libm.h"
     4.5  #include "math_private.h"
     4.6  
     4.7 +#ifdef __WATCOMC__ /* Watcom defines huge=__huge */
     4.8 +#undef huge
     4.9 +#endif
    4.10 +
    4.11  static const double huge = 1.0e300;
    4.12  
    4.13  double floor(double x)
     5.1 --- a/src/libm/s_scalbn.c	Sun Nov 18 11:50:02 2018 +0300
     5.2 +++ b/src/libm/s_scalbn.c	Sun Nov 18 11:50:20 2018 +0300
     5.3 @@ -20,6 +20,10 @@
     5.4  #include "math_private.h"
     5.5  #include <limits.h>
     5.6  
     5.7 +#ifdef __WATCOMC__ /* Watcom defines huge=__huge */
     5.8 +#undef huge
     5.9 +#endif
    5.10 +
    5.11  static const double
    5.12  two54  = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
    5.13  twom54 = 5.55111512312578270212e-17, /* 0x3C900000, 0x00000000 */