OS/2 fixes (SF#1771378: https://sourceforge.net/tracker/index.php?func=detail&aid...
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 29 Aug 2007 00:49:37 +0000 (00:49 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 29 Aug 2007 00:49:37 +0000 (00:49 +0000)
doc/html/changelog.html
src/libFLAC/stream_decoder.c

index dd37e74..a2a57b6 100644 (file)
                                        <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>
                                        <li>Solaris 10 fixes (<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1783225&amp;group_id=13478&amp;atid=113478">SF #1783225</a>).</li>
+                                       <li>OS/2 fixes (<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1771378&amp;group_id=13478&amp;atid=113478">SF #1771378</a>).</li>
                                </ul>
                        </li>
                        <li>
index 86eaacf..505958f 100644 (file)
@@ -1287,9 +1287,11 @@ FILE *get_binary_stdin_(void)
         */
 #if defined _MSC_VER || defined __MINGW32__
        _setmode(_fileno(stdin), _O_BINARY);
-#elif defined __CYGWIN__ || defined __EMX__
+#elif defined __CYGWIN__ 
        /* almost certainly not needed for any modern Cygwin, but let's be safe... */
        setmode(_fileno(stdin), _O_BINARY);
+#elif defined __EMX__
+       setmode(fileno(stdin), O_BINARY);
 #endif
 
        return stdin;