OSDN Git Service

accommodate __STDC__ == 0 tests in UW 2.1.2
[pf3gnuchains/gcc-fork.git] / gcc / fixinc / tests / base / math.h
1 /*  DO NOT EDIT THIS FILE.
2
3     It has been auto-edited by fixincludes from:
4
5         "fixinc/tests/inc/math.h"
6
7     This had to be done to correct non-standard usages in the
8     original, manufacturer supplied header file.  */
9
10 #ifndef FIXINC_SUNOS_MATHERR_DECL_CHECK
11 #define FIXINC_SUNOS_MATHERR_DECL_CHECK 1
12
13 struct exception;
14 #ifndef FIXINC_MATH_EXCEPTION_CHECK
15 #define FIXINC_MATH_EXCEPTION_CHECK 1
16
17 #ifdef __cplusplus
18 #define exception __math_exception
19 #endif
20
21
22 #if defined( BROKEN_CABS_CHECK )
23 #ifdef __STDC__
24
25 #else
26
27 #endif
28  /* This is a comment
29                          and it ends here. */
30 #endif  /* BROKEN_CABS_CHECK */
31
32
33 #if defined( FIX_HEADER_BREAKAGE_CHECK )
34 extern double floor(), ceil(), fmod(), fabs _PARAMS((double));
35 #endif  /* FIX_HEADER_BREAKAGE_CHECK */
36
37
38 #if defined( HPUX11_CPP_POW_INLINE_CHECK )
39
40 #endif  /* HPUX11_CPP_POW_INLINE_CHECK */
41
42
43 #if defined( HPUX11_FABSF_CHECK )
44 #ifdef _PA_RISC
45 #ifndef __cplusplus
46 #  define fabsf(x) ((float)fabs((double)(float)(x)))
47 #endif
48 #endif
49 #endif  /* HPUX11_FABSF_CHECK */
50
51
52 #if defined( HPUX8_BOGUS_INLINES_CHECK )
53 extern "C" int abs(int);
54
55 #endif  /* HPUX8_BOGUS_INLINES_CHECK */
56
57
58 #if defined( ISC_FMOD_CHECK )
59 extern double   fmod(double, double);
60 #endif  /* ISC_FMOD_CHECK */
61
62
63 #if defined( M88K_BAD_HYPOT_OPT_CHECK )
64 extern double hypot();
65 /* Workaround a stupid Motorola optimization if one
66    of x or y is 0.0 and the other is negative!  */
67 #ifdef __STDC__
68 static __inline__ double fake_hypot (double x, double y)
69 #else
70 static __inline__ double fake_hypot (x, y)
71         double x, y;
72 #endif
73 {
74         return fabs (hypot (x, y));
75 }
76 #define hypot   fake_hypot
77 #endif  /* M88K_BAD_HYPOT_OPT_CHECK */
78
79
80 #if defined( MATH_EXCEPTION_CHECK )
81 typedef struct exception t_math_exception;
82 #endif  /* MATH_EXCEPTION_CHECK */
83
84
85 #if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
86
87 #ifndef HUGE_VAL
88 #define HUGE_VAL 3.1415e+9 /* really big */
89 #endif
90 #endif  /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
91
92
93 #if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
94 #ifndef HUGE_VAL
95 # define        HUGE_VAL 3.4e+40
96 #endif
97 #endif  /* MATH_HUGE_VAL_IFNDEF_CHECK */
98
99
100 #if defined( RS6000_DOUBLE_CHECK )
101 #ifndef __cplusplus
102 extern int class();
103 #endif
104 #endif  /* RS6000_DOUBLE_CHECK */
105
106
107 #if defined( STRICT_ANSI_NOT_CTD_CHECK )
108 #if 1 && \
109 && defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
110 (  !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
111 ||  !defined(__STRICT_ANSI__) ) /* not std C */
112 int foo;
113 #endif
114 #endif  /* STRICT_ANSI_NOT_CTD_CHECK */
115
116
117 #if defined( SUNOS_MATHERR_DECL_CHECK )
118 extern int matherr();
119 #endif  /* SUNOS_MATHERR_DECL_CHECK */
120
121
122 #if defined( SVR4__P_CHECK )
123 #ifndef __P
124 #define __P(a) a
125 #endif
126 #endif  /* SVR4__P_CHECK */
127
128
129 #if defined( ULTRIX_ATOF_PARAM_CHECK )
130 extern double atof(const char *__nptr);
131
132 #endif  /* ULTRIX_ATOF_PARAM_CHECK */
133 #ifdef __cplusplus
134 #undef exception
135 #endif
136
137 #endif  /* FIXINC_MATH_EXCEPTION_CHECK */
138
139 #endif  /* FIXINC_SUNOS_MATHERR_DECL_CHECK */