diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-01-26 14:50:50 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-01-26 14:50:50 (GMT) |
commit | 495333b9d8beb5dbc5eecfdd9b685b8b883b2113 (patch) | |
tree | 49e35341c2655bdb32178c94f61aff59a51ef872 /src/id3lib-win32.patch | |
parent | 4b4949fe11824882f422ceccd73723d14a1253fa (diff) | |
download | mxe-495333b9d8beb5dbc5eecfdd9b685b8b883b2113.zip mxe-495333b9d8beb5dbc5eecfdd9b685b8b883b2113.tar.gz mxe-495333b9d8beb5dbc5eecfdd9b685b8b883b2113.tar.bz2 |
new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Diffstat (limited to 'src/id3lib-win32.patch')
-rw-r--r-- | src/id3lib-win32.patch | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/id3lib-win32.patch b/src/id3lib-win32.patch new file mode 100644 index 0000000..3283a54 --- /dev/null +++ b/src/id3lib-win32.patch @@ -0,0 +1,78 @@ +This file is part of mingw-cross-env. +See doc/index.html or doc/README for further information. + +diff -ru id3lib-3.8.3-orig/configure.in id3lib-3.8.3/configure.in +--- id3lib-3.8.3-orig/configure.in 2003-03-02 01:23:00.000000000 +0100 ++++ id3lib-3.8.3/configure.in 2010-01-23 14:15:24.000000000 +0100 +@@ -227,7 +227,6 @@ + ) + AC_CHECK_HEADERS( \ + string \ +- iomanip.h \ + ,,AC_MSG_ERROR([Missing a vital header file for id3lib]) + ) + +@@ -249,10 +248,10 @@ + AM_CONDITIONAL(ID3_NEEDGETOPT_LONG, test x$ac_cv_func_getopt_long = xno) + + AC_CHECK_FUNCS(mkstemp) +-AC_CHECK_FUNCS( +- truncate \ +- ,,AC_MSG_ERROR([Missing a vital function for id3lib]) +-) ++#AC_CHECK_FUNCS( ++# truncate \ ++# ,,AC_MSG_ERROR([Missing a vital function for id3lib]) ++#) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_TYPE_SIZE_T +diff -ru id3lib-3.8.3-orig/include/id3/globals.h id3lib-3.8.3/include/id3/globals.h +--- id3lib-3.8.3-orig/include/id3/globals.h 2003-03-02 01:23:00.000000000 +0100 ++++ id3lib-3.8.3/include/id3/globals.h 2010-01-23 14:22:58.000000000 +0100 +@@ -41,7 +41,7 @@ + * we prefix variable declarations so they can + * properly get exported in windows dlls. + */ +-#ifdef WIN32 ++#ifdef __MSVC_VER + # define LINKOPTION_STATIC 1 //both for use and creation of static lib + # define LINKOPTION_CREATE_DYNAMIC 2 //should only be used by prj/id3lib.dsp + # define LINKOPTION_USE_DYNAMIC 3 //if your project links id3lib dynamic +@@ -74,11 +74,11 @@ + # define CCONV __stdcall // Added for VB & Delphi Compatibility - By FrogPrince Advised By Lothar + # endif + # endif +-#else /* !WIN32 */ ++#else /* !__MSVC_VER */ + # define ID3_C_EXPORT + # define ID3_CPP_EXPORT + # define CCONV +-#endif /* !WIN32 */ ++#endif /* !__MSVC_VER */ + + #define ID3_C_VAR extern + +diff -ru id3lib-3.8.3-orig/include/id3/id3lib_strings.h id3lib-3.8.3/include/id3/id3lib_strings.h +--- id3lib-3.8.3-orig/include/id3/id3lib_strings.h 2003-03-02 01:23:00.000000000 +0100 ++++ id3lib-3.8.3/include/id3/id3lib_strings.h 2010-01-23 14:15:24.000000000 +0100 +@@ -30,6 +30,7 @@ + #define _ID3LIB_STRINGS_H_ + + #include <string> ++#include <cstring> + + #if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000)) + namespace std +diff -ru id3lib-3.8.3-orig/include/id3/writers.h id3lib-3.8.3/include/id3/writers.h +--- id3lib-3.8.3-orig/include/id3/writers.h 2003-03-02 01:23:00.000000000 +0100 ++++ id3lib-3.8.3/include/id3/writers.h 2010-01-23 14:15:24.000000000 +0100 +@@ -30,7 +30,7 @@ + + #include "id3/writer.h" + #include "id3/id3lib_streams.h" +-//#include <string.h> ++#include <cstring> + + class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer + { |