mirror of
https://github.com/yawut/SDL.git
synced 2026-07-29 14:43:21 -05:00
Added missing math.h functionality for SDL_audiocvt.c
This commit is contained in:
parent
24fa5e3a47
commit
ab3c4fb876
|
|
@ -28,6 +28,8 @@
|
|||
|
||||
/* Math routines from uClibc: http://www.uclibc.org */
|
||||
|
||||
#define M_PI 3.14159265358979323846264338327950288 /* pi */
|
||||
|
||||
extern double __ieee754_log(double x);
|
||||
extern double __ieee754_pow(double x, double y);
|
||||
extern double __ieee754_sqrt(double x);
|
||||
|
|
@ -43,6 +45,9 @@ extern double floor(double x);
|
|||
extern double scalbn(double x, int n);
|
||||
extern double sin(double x);
|
||||
|
||||
#define sinf(x) (float)sin((double)x)
|
||||
#define cosf(x) (float)cos((double)x)
|
||||
|
||||
#endif /* HAVE_MATH_H */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user