Patch from JonY to suppress redefinition warnings with mingw-w64 lfs64 warnings.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Feb 2012 04:31:28 +0000 (15:31 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Feb 2012 04:31:28 +0000 (15:31 +1100)
src/flac/decode.c
src/flac/encode.c
src/flac/foreign_metadata.c
src/flac/iffscan.c
src/libFLAC/metadata_iterators.c
src/libFLAC/stream_decoder.c
src/libFLAC/stream_encoder.c
src/test_libFLAC/decoders.c
src/test_libFLAC/metadata_manip.c

index 05d86f3..2173669 100644 (file)
 #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. */
index dafa105..87ef2ef 100644 (file)
 #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() */
index 7e273a5..d4fb7c2 100644 (file)
 #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. */
index da74a5f..2cb9075 100644 (file)
 #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)
index ac6473e..9ef9882 100644 (file)
 #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() */
index 72d9e43..0323d73 100644 (file)
 #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"
index 8fb3209..0b6d8c2 100644 (file)
 #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"
index e45e722..70127cf 100644 (file)
 #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"
index 4214383..6644e79 100644 (file)
 #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() */