[xiph-commits] r14395 - trunk/speex/src

jm at svn.xiph.org jm at svn.xiph.org
Sun Jan 13 00:55:20 PST 2008


Author: jm
Date: 2008-01-13 00:55:18 -0800 (Sun, 13 Jan 2008)
New Revision: 14395

Modified:
   trunk/speex/src/speexdec.c
   trunk/speex/src/speexenc.c
Log:
OS2 support for stdin/stdout support in speexenc/speexdec (by Franz Bekan)


Modified: trunk/speex/src/speexdec.c
===================================================================
--- trunk/speex/src/speexdec.c	2008-01-11 05:51:49 UTC (rev 14394)
+++ trunk/speex/src/speexdec.c	2008-01-13 08:55:18 UTC (rev 14395)
@@ -231,6 +231,8 @@
       {
 #if defined WIN32 || defined _WIN32
          _setmode(_fileno(stdout), _O_BINARY);
+#elif defined OS2
+         _fsetmode(stdout,"b");
 #endif
          fout=stdout;
       }

Modified: trunk/speex/src/speexenc.c
===================================================================
--- trunk/speex/src/speexenc.c	2008-01-11 05:51:49 UTC (rev 14394)
+++ trunk/speex/src/speexenc.c	2008-01-13 08:55:18 UTC (rev 14395)
@@ -514,6 +514,8 @@
    {
 #if defined WIN32 || defined _WIN32
          _setmode(_fileno(stdin), _O_BINARY);
+#elif defined OS2
+         _fsetmode(stdin,"b");
 #endif
       fin=stdin;
    }



More information about the commits mailing list