mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Move M_PI definition to include/share/compat.h.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
@@ -177,8 +177,11 @@
|
|||||||
#ifndef M_LN2
|
#ifndef M_LN2
|
||||||
#define M_LN2 0.69314718055994530942
|
#define M_LN2 0.69314718055994530942
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef M_PI
|
||||||
|
#define M_PI 3.14159265358979323846
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FLAC needs to compile and work correctly on systems with a norrmal ISO C99
|
/* FLAC needs to compile and work correctly on systems with a normal ISO C99
|
||||||
* snprintf as well as Microsoft Visual Studio which has an non-standards
|
* snprintf as well as Microsoft Visual Studio which has an non-standards
|
||||||
* conformant snprint_s function.
|
* conformant snprint_s function.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -35,17 +35,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "share/compat.h"
|
||||||
#include "FLAC/assert.h"
|
#include "FLAC/assert.h"
|
||||||
#include "FLAC/format.h"
|
#include "FLAC/format.h"
|
||||||
#include "private/window.h"
|
#include "private/window.h"
|
||||||
|
|
||||||
#ifndef FLAC__INTEGER_ONLY_LIBRARY
|
#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)
|
void FLAC__window_bartlett(FLAC__real *window, const FLAC__int32 L)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,11 +34,6 @@
|
|||||||
#include "FLAC/ordinals.h"
|
#include "FLAC/ordinals.h"
|
||||||
#include "share/compat.h"
|
#include "share/compat.h"
|
||||||
|
|
||||||
#ifndef M_PI
|
|
||||||
/* math.h in VC++ doesn't seem to have this (how Microsoft is that?) */
|
|
||||||
#define M_PI 3.14159265358979323846
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined _MSC_VER && !defined __MINGW32__
|
#if !defined _MSC_VER && !defined __MINGW32__
|
||||||
#define GET_RANDOM_BYTE (((unsigned)random()) & 0xff)
|
#define GET_RANDOM_BYTE (((unsigned)random()) & 0xff)
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user