Commit 105093d7 authored by Sam Lantinga's avatar Sam Lantinga

Added missing math.h functionality for SDL_audiocvt.c

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403226
parent a3c6362a
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
/* Math routines from uClibc: http://www.uclibc.org */ /* Math routines from uClibc: http://www.uclibc.org */
#define M_PI 3.14159265358979323846264338327950288 /* pi */
extern double __ieee754_log(double x); extern double __ieee754_log(double x);
extern double __ieee754_pow(double x, double y); extern double __ieee754_pow(double x, double y);
extern double __ieee754_sqrt(double x); extern double __ieee754_sqrt(double x);
...@@ -43,6 +45,9 @@ extern double floor(double x); ...@@ -43,6 +45,9 @@ extern double floor(double x);
extern double scalbn(double x, int n); extern double scalbn(double x, int n);
extern double sin(double x); extern double sin(double x);
#define sinf(x) (float)sin((double)x)
#define cosf(x) (float)cos((double)x)
#endif /* HAVE_MATH_H */ #endif /* HAVE_MATH_H */
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */
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