]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/tests/base/math.h
Made fixincludes a toplevel build module.
[thirdparty/gcc.git] / fixincludes / tests / base / math.h
CommitLineData
4e62ab0b
BK
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
871dab3e
BK
10#ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
11#define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
26e903ee
BK
12
13#ifdef __cplusplus
14#define exception __math_exception
15#endif
abd3817f
BK
16#ifndef FIXINC_WRAP_MATH_H_EXCEPTION_STRUCTURE
17#define FIXINC_WRAP_MATH_H_EXCEPTION_STRUCTURE 1
18
19struct exception;
26e903ee
BK
20
21
22#if defined( BROKEN_CABS_CHECK )
23#ifdef __STDC__
24
25#else
26
27#endif
93b8a7a8 28
26e903ee
BK
29 /* This is a comment
30 and it ends here. */
31#endif /* BROKEN_CABS_CHECK */
32
33
abd3817f
BK
34#if defined( EXCEPTION_STRUCTURE_CHECK )
35extern int matherr();
36#endif /* EXCEPTION_STRUCTURE_CHECK */
37
38
583a7077
BK
39#if defined( HPUX11_CPP_POW_INLINE_CHECK )
40
41#endif /* HPUX11_CPP_POW_INLINE_CHECK */
42
43
26e903ee
BK
44#if defined( HPUX11_FABSF_CHECK )
45#ifdef _PA_RISC
b5639a49 46#ifndef __cplusplus
26e903ee
BK
47# define fabsf(x) ((float)fabs((double)(float)(x)))
48#endif
b5639a49 49#endif
26e903ee
BK
50#endif /* HPUX11_FABSF_CHECK */
51
52
53#if defined( HPUX8_BOGUS_INLINES_CHECK )
54extern "C" int abs(int);
55
56#endif /* HPUX8_BOGUS_INLINES_CHECK */
57
58
59#if defined( ISC_FMOD_CHECK )
60extern double fmod(double, double);
61#endif /* ISC_FMOD_CHECK */
62
63
26e903ee
BK
64#if defined( MATH_EXCEPTION_CHECK )
65typedef struct exception t_math_exception;
66#endif /* MATH_EXCEPTION_CHECK */
67
68
8e9114bb
BK
69#if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
70
71#ifndef HUGE_VAL
72#define HUGE_VAL 3.1415e+9 /* really big */
73#endif
74#endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
75
76
26e903ee
BK
77#if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
78#ifndef HUGE_VAL
79# define HUGE_VAL 3.4e+40
80#endif
81#endif /* MATH_HUGE_VAL_IFNDEF_CHECK */
82
83
84#if defined( RS6000_DOUBLE_CHECK )
85#ifndef __cplusplus
86extern int class();
87#endif
88#endif /* RS6000_DOUBLE_CHECK */
89
90
de0656cf
KJ
91#if defined( SCO_MATH_CHECK )
92#define __fp_class(a) \
93 __builtin_generic(a,"ld:__fplcassifyl;f:__fpclassifyf;:__fpclassify")
94
95#endif /* SCO_MATH_CHECK */
96
97
1cf6b5a3 98#if defined( STRICT_ANSI_NOT_CTD_CHECK )
b5639a49
BK
99#if 1 && \
100&& defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \
101( !defined(__STRICT_ANSI__) && !defined(_XOPEN_SOURCE) \
102|| !defined(__STRICT_ANSI__) ) /* not std C */
1cf6b5a3
BK
103int foo;
104#endif
105#endif /* STRICT_ANSI_NOT_CTD_CHECK */
106
107
26e903ee
BK
108#if defined( SVR4__P_CHECK )
109#ifndef __P
110#define __P(a) a
111#endif
112#endif /* SVR4__P_CHECK */
ff84bb18
BK
113
114
115#if defined( ULTRIX_ATOF_PARAM_CHECK )
c77b484a
BK
116extern double atof(const char *__nptr);
117
ff84bb18 118#endif /* ULTRIX_ATOF_PARAM_CHECK */
c297b764
MM
119
120
121#if defined( WINDISS_MATH1_CHECK )
122#ifndef __GNUC__
123#endif /* WINDISS_MATH1_CHECK */
124
125
126#if defined( WINDISS_MATH2_CHECK )
127#endif /* __GNUC__ */
128#endif /* WINDISS_MATH2_CHECK */
abd3817f
BK
129
130#endif /* FIXINC_WRAP_MATH_H_EXCEPTION_STRUCTURE */
26e903ee
BK
131#ifdef __cplusplus
132#undef exception
133#endif
134
871dab3e 135#endif /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */