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
Xiph.Org
flac
Commits
6c7568b7
Commit
6c7568b7
authored
Feb 04, 2012
by
Erik de Castro Lopo
Browse files
Patch from JonY to suppress redefinition warnings with mingw-w64 lfs64 warnings.
parent
a606e1a7
Changes
9
Hide whitespace changes
Inline
Side-by-side
src/flac/decode.c
View file @
6c7568b7
...
...
@@ -29,10 +29,14 @@
#if defined _MSC_VER || defined __MINGW32__
#include
<sys/types.h>
/* for off_t */
#if _MSC_VER <= 1600
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
<errno.h>
#include
<math.h>
/* for floor() */
#include
<stdio.h>
/* for FILE etc. */
...
...
src/flac/encode.c
View file @
6c7568b7
...
...
@@ -29,10 +29,14 @@
#if defined _MSC_VER || defined __MINGW32__
#include
<sys/types.h>
/* for off_t */
#if _MSC_VER <= 1600
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
<errno.h>
#include
<limits.h>
/* for LONG_MAX */
#include
<math.h>
/* for floor() */
...
...
src/flac/foreign_metadata.c
View file @
6c7568b7
...
...
@@ -23,10 +23,14 @@
#if defined _MSC_VER || defined __MINGW32__
#include
<sys/types.h>
/* for off_t */
#if _MSC_VER <= 1600
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
<stdio.h>
/* for FILE etc. */
#include
<stdlib.h>
/* for calloc() etc. */
#include
<string.h>
/* for memcmp() etc. */
...
...
src/flac/iffscan.c
View file @
6c7568b7
...
...
@@ -26,10 +26,14 @@
#if defined _MSC_VER || defined __MINGW32__
#include
<sys/types.h>
/* for off_t */
#if _MSC_VER <= 1600
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
"foreign_metadata.h"
static
FLAC__uint32
unpack32be_
(
const
FLAC__byte
*
b
)
...
...
src/libFLAC/metadata_iterators.c
View file @
6c7568b7
...
...
@@ -47,9 +47,13 @@
#include
<io.h>
/* for chmod() */
#include
<sys/types.h>
/* for off_t */
#if _MSC_VER <= 1600 || defined __BORLANDC__
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#else
#include
<sys/types.h>
/* some flavors of BSD (like OS X) require this to get time_t */
#include
<utime.h>
/* for utime() */
...
...
src/libFLAC/stream_decoder.c
View file @
6c7568b7
...
...
@@ -48,10 +48,14 @@
#include
<sys/types.h>
/* for off_t */
#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
#if _MSC_VER <= 1600 || defined __BORLANDC__
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
"FLAC/assert.h"
#include
"share/alloc.h"
#include
"protected/stream_decoder.h"
...
...
src/libFLAC/stream_encoder.c
View file @
6c7568b7
...
...
@@ -48,10 +48,14 @@
#include
<sys/types.h>
/* for off_t */
#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
#if _MSC_VER <= 1600 || defined __BORLANDC__
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
"FLAC/assert.h"
#include
"FLAC/stream_decoder.h"
#include
"share/alloc.h"
...
...
src/test_libFLAC/decoders.c
View file @
6c7568b7
...
...
@@ -26,10 +26,14 @@
#include
<string.h>
#if defined _MSC_VER || defined __MINGW32__
#if _MSC_VER <= 1600
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#endif
#include
"decoders.h"
#include
"FLAC/assert.h"
#include
"FLAC/stream_decoder.h"
...
...
src/test_libFLAC/metadata_manip.c
View file @
6c7568b7
...
...
@@ -27,9 +27,13 @@
#include
<sys/utime.h>
/* for utime() */
#include
<io.h>
/* for chmod() */
#if _MSC_VER <= 1600
/* @@@ [2G limit] */
#ifndef fseeko
#define fseeko fseek
#endif
#ifndef ftello
#define ftello ftell
#endif
#endif
#else
#include
<sys/types.h>
/* some flavors of BSD (like OS X) require this to get time_t */
#include
<utime.h>
/* for utime() */
...
...
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