From fe3b8ecc95fb0c608fac1d0c8f761d4bc9914c2d Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 3 May 2006 00:13:38 +0000 Subject: [PATCH] #define M_PI for MSVC6 --- src/libFLAC/window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libFLAC/window.c b/src/libFLAC/window.c index 33c319f..a13a21f 100644 --- a/src/libFLAC/window.c +++ b/src/libFLAC/window.c @@ -36,6 +36,11 @@ #ifndef FLAC__INTEGER_ONLY_LIBRARY +#ifndef M_PI +/* math.h in VC++ doesn't seem to have this (how Microsoft is that?) */ +#define M_PI 3.14159265358979323846 +#endif + void FLAC__window_bartlett(FLAC__real *window, const FLAC__int32 L) { -- 2.7.4