mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Move defintion of M_LN2 to include/share/compat.h.
This commit is contained in:
@@ -174,6 +174,9 @@
|
|||||||
#define flac_fstat fstat
|
#define flac_fstat fstat
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef M_LN2
|
||||||
|
#define M_LN2 0.69314718055994530942
|
||||||
|
#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 norrmal 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
|
||||||
|
|||||||
@@ -36,15 +36,12 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "share/compat.h"
|
||||||
#include "private/bitmath.h"
|
#include "private/bitmath.h"
|
||||||
#include "private/fixed.h"
|
#include "private/fixed.h"
|
||||||
#include "private/macros.h"
|
#include "private/macros.h"
|
||||||
#include "FLAC/assert.h"
|
#include "FLAC/assert.h"
|
||||||
|
|
||||||
#ifndef M_LN2
|
|
||||||
#define M_LN2 0.69314718055994530942
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef local_abs
|
#ifdef local_abs
|
||||||
#undef local_abs
|
#undef local_abs
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -51,10 +51,6 @@
|
|||||||
|
|
||||||
#ifndef FLAC__INTEGER_ONLY_LIBRARY
|
#ifndef FLAC__INTEGER_ONLY_LIBRARY
|
||||||
|
|
||||||
#ifndef M_LN2
|
|
||||||
#define M_LN2 0.69314718055994530942
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(HAVE_LROUND)
|
#if !defined(HAVE_LROUND)
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user