Commit 6396c3f6 by Jim Wilson

(HUGE_VAL): Add #undef before HUGE_VAL

define, instead of surrounding it with #ifndef/#endif.

From-SVN: r5508
parent c3341e3b
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <errno.h> #include <errno.h>
#ifndef HUGE_VAL #undef HUGE_VAL
#define HUGE_VAL \ #define HUGE_VAL \
({ \ ({ \
double huge_val; \ double huge_val; \
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
: /* no inputs */); \ : /* no inputs */); \
huge_val; \ huge_val; \
}) })
#endif
__inline static const double sin (double x) __inline static const double sin (double x)
{ {
......
...@@ -33,12 +33,15 @@ ...@@ -33,12 +33,15 @@
December 1989, add parens around `&' in pow. December 1989, add parens around `&' in pow.
November 1990, added alternate definition of HUGE_VAL for Sun. */ November 1990, added alternate definition of HUGE_VAL for Sun. */
/* Changed by Jim Wilson:
September 1993, Use #undef before HUGE_VAL instead of #ifdef/#endif. */
#ifndef __math_68881 #ifndef __math_68881
#define __math_68881 #define __math_68881
#include <errno.h> #include <errno.h>
#ifndef HUGE_VAL #undef HUGE_VAL
#ifdef __sun__ #ifdef __sun__
/* The Sun assembler fails to handle the hex constant in the usual defn. */ /* The Sun assembler fails to handle the hex constant in the usual defn. */
#define HUGE_VAL \ #define HUGE_VAL \
...@@ -57,7 +60,6 @@ ...@@ -57,7 +60,6 @@
huge_val; \ huge_val; \
}) })
#endif #endif
#endif
__inline static const double __inline static const double
sin (double x) sin (double x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment