commit | fe3b8ecc95fb0c608fac1d0c8f761d4bc9914c2d | [log] [tgz] |
---|---|---|
author | Josh Coalson <jcoalson@users.sourceforce.net> | Wed May 03 00:13:38 2006 +0000 |
committer | Josh Coalson <jcoalson@users.sourceforce.net> | Wed May 03 00:13:38 2006 +0000 |
tree | c94187d535949fb523b015bf8c9c92ab543617c8 | |
parent | 0abc735e138b9ae79de6a5e078da54b004e3e366 [diff] |
#define M_PI for MSVC6
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) {