pkgsrc/pkgtools/compat_headers/files/math.h.in
tnn 379887f5c0 Import compat_headers-0.1 as pkgtools/compat_headers.
This package attempts to resolve deficiencies in system headers by
providing missing types, definitions and prototypes in shadow headers.
New in this version:
- Rewrote all of the tests to use autoconf.
- Implemented tests and support for more standard integer types.
2008-05-24 03:35:38 +00:00

35 lines
717 B
C

#include "config.h"
@include "@real_header@"
@ifndef _COMPAT_MATH_H_
@define _COMPAT_MATH_H_
#if CH_FLOORF < 1
@define floorf(x) ((float)floor (x))
#endif
#if CH_CEILF < 1
@define ceilf(x) ((float)ceil (x))
#endif
#if CH_SINF < 1
@define sinf(x) ((float)sin (x))
#endif
#if CH_COSF < 1
@define cosf(x) ((float)cos (x))
#endif
#if CH_TANF < 1
@define tanf(x) ((float)tan (x))
#endif
#if CH_ASINF < 1
@define asinf(x) ((float)asin (x))
#endif
#if CH_ACOSF < 1
@define acosf(x) ((float)acos (x))
#endif
#if CH_ATANF < 1
@define atanf(x) ((float)atan (x))
#endif
#if CH_ATAN2F < 1
@define atan2f(x,y) ((float)atan2 (x, y))
#endif
#if CH_SQRTF < 1
@define sqrtf(x) ((float)sqrt (y))
#endif
@endif /* _COMPAT_MATH_H_ */