defining M_PI if it's not.
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 6 Feb 2007 01:19:26 +0000 (01:19 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 6 Feb 2007 01:19:26 +0000 (01:19 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@12434 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/resample.c

index aa4fd86..7797890 100644 (file)
@@ -66,6 +66,10 @@ void speex_free (void *ptr) {free(ptr);}
 #include <math.h>
 #include "speex/speex_resampler.h"
 
+#ifndef M_PI
+#define M_PI 3.14159263
+#endif
+
 #ifdef FIXED_POINT
 #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x)))  
 #else