SET FSTAB=%FSTAB:"=%
ECHO %FSTAB% /xbmc>>"%MSYS_INSTALL_PATH%\etc\fstab"
-rem patch mingw headers to compile ffmpeg
-xcopy mingw_support\postinstall\* "%MSYS_INSTALL_PATH%\postinstall\" /E /Q /I /Y
-cd "%MSYS_INSTALL_PATH%\postinstall"
-CALL pi_patches.bat
-
-cd %CUR_PATH%
-
rem insert call to vcvars32.bat in msys.bat
SET NET90VARS="%VS90COMNTOOLS%..\..\VC\bin\vcvars32.bat"
SET NET100VARS="%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"
+++ /dev/null
---- /mingw/include/stdio.h.orig 2010-06-27 14:30:24.000000000 -0300
-+++ /mingw/include/stdio.h 2010-01-09 01:39:12.000000000 -0200
-@@ -366,7 +366,7 @@
- _CRTIMP int __cdecl __MINGW_NOTHROW _filbuf (FILE*);
- _CRTIMP int __cdecl __MINGW_NOTHROW _flsbuf (int, FILE*);
-
--#if !defined _MT
-+#if 0
-
- __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE* __F)
- {
+++ /dev/null
---- /mingw/include/string.h.orig 2010-06-27 13:46:10.000000000 -0300
-+++ /mingw/include/string.h 2010-06-27 14:01:04.000000000 -0300
-@@ -116,6 +116,9 @@
- #endif /* _UWIN */
- #endif /* _NO_OLDNAMES */
-
-+#else
-+int __cdecl __MINGW_NOTHROW strcasecmp (const char*, const char *);
-+int __cdecl __MINGW_NOTHROW strncasecmp (const char *, const char *, size_t);
- #endif /* Not __STRICT_ANSI__ */
-
- #ifndef _WSTRING_DEFINED
+++ /dev/null
---- /mingw/include/stdio.h.orig 2010-06-27 14:30:24.000000000 -0300
-+++ /mingw/include/stdio.h 2010-06-27 14:32:24.000000000 -0300
-@@ -186,6 +186,8 @@
- _CRTIMP int __cdecl __MINGW_NOTHROW rmtmp(void);
- _CRTIMP int __cdecl __MINGW_NOTHROW unlink (const char*);
- #endif
-+#else
-+_CRTIMP char* __cdecl __MINGW_NOTHROW tempnam (const char*, const char*);
- #endif /* __STRICT_ANSI__ */
-
- _CRTIMP int __cdecl __MINGW_NOTHROW setvbuf (FILE*, char*, int, size_t);
+++ /dev/null
-PATH ..\bin;%PATH%
-..\bin\sh.exe pi_patches.sh
\ No newline at end of file
+++ /dev/null
-cd ..
-patch -p1 < postinstall/patches/nomt.diff
-patch -p1 < postinstall/patches/strcasecmp.diff
-patch -p1 < postinstall/patches/tempnam.diff
\ No newline at end of file