Some MinGW fixes (SF#1684879: https://sourceforge.net/tracker/index.php?func=detail...
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 31 Jul 2007 00:39:46 +0000 (00:39 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 31 Jul 2007 00:39:46 +0000 (00:39 +0000)
doc/html/changelog.html
src/libFLAC/bitreader.c
src/libFLAC/bitwriter.c
src/share/grabbag/file.c

index ccf4357..d4a7604 100644 (file)
                                <ul>
                                        <li>Fixed bug compiling <span class="commandname">flac</span> without Ogg support (<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1760786&amp;group_id=13478&amp;atid=113478">SF #1760786</a>).</li>
                                        <li>Fixed bug where sometimes an existing installation of flac could interfere with the build process (<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1763690&amp;group_id=13478&amp;atid=113478">SF #1763690</a>).</li>
+                                       <li>Some MinGW fixes (<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1684879&amp;group_id=13478&amp;atid=113478">SF #1684879</a>).</li>
                                </ul>
                        </li>
                        <li>
index ce6fe82..7d63e52 100644 (file)
@@ -39,6 +39,8 @@
 #include <winsock.h> /* for ntohl() */
 #elif defined FLAC__SYS_DARWIN
 #include <machine/endian.h> /* for ntohl() */
+#elif defined __MINGW32__
+#include <winsock.h> /* for ntohl() */
 #else
 #include <netinet/in.h> /* for ntohl() */
 #endif
index 4e34a38..4a43530 100644 (file)
@@ -39,6 +39,8 @@
 #include <winsock.h> /* for ntohl() */
 #elif defined FLAC__SYS_DARWIN
 #include <machine/endian.h> /* for ntohl() */
+#elif defined __MINGW32__
+#include <winsock.h> /* for ntohl() */
 #else
 #include <netinet/in.h> /* for ntohl() */
 #endif
index a481f74..d073c4b 100644 (file)
@@ -42,8 +42,8 @@
 #include <string.h> /* for strrchr() */
 #if defined _WIN32 && !defined __CYGWIN__
 // for GetFileInformationByHandle() etc
-#include <Windows.h>
-#include <Winbase.h>
+#include <windows.h>
+#include <winbase.h>
 #endif
 #include "share/grabbag.h"