Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
31a79d7e
Commit
31a79d7e
authored
Sep 27, 2013
by
Erik de Castro Lopo
Browse files
Move M_PI definition to include/share/compat.h.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent
733efde2
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/share/compat.h
View file @
31a79d7e
...
...
@@ -177,8 +177,11 @@
#ifndef M_LN2
#define M_LN2 0.69314718055994530942
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
/* FLAC needs to compile and work correctly on systems with a nor
r
mal 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
* conformant snprint_s function.
*
...
...
src/libFLAC/window.c
View file @
31a79d7e
...
...
@@ -35,17 +35,13 @@
#endif
#include
<math.h>
#include
"share/compat.h"
#include
"FLAC/assert.h"
#include
"FLAC/format.h"
#include
"private/window.h"
#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
)
{
...
...
src/test_streams/main.c
View file @
31a79d7e
...
...
@@ -34,11 +34,6 @@
#include
"FLAC/ordinals.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__
#define GET_RANDOM_BYTE (((unsigned)random()) & 0xff)
#else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment