ref: 99111038210a07af485be94a6e85dc43faa10eff
parent: db4dcf6c1581496e336062c866ce522544d25849
author: Carlos Rafael Giani <dv@pseudoterminal.org>
date: Wed May 22 13:37:36 EDT 2013
M_PI may not be defined When building with gcc 4.7.2 and -std=c99 , M_PI is not defined
--- a/dumb/src/helpers/lanczos_resampler.c
+++ b/dumb/src/helpers/lanczos_resampler.c
@@ -3,6 +3,10 @@
#define _USE_MATH_DEFINES
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
#include "internal/lanczos_resampler.h"
enum { LANCZOS_RESOLUTION = 8192 };