[xiph-cvs] cvs commit: vorbis-tools/oggdec oggdec.c

Michael Smith msmith at xiph.org
Thu Jul 18 23:25:59 PDT 2002



msmith      02/07/18 23:25:59

  Modified:    oggdec   oggdec.c
  Log:
  borland C fixes

Revision  Changes    Path
1.9       +6 -2      vorbis-tools/oggdec/oggdec.c

Index: oggdec.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggdec/oggdec.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- oggdec.c	2002/07/04 09:01:22	1.8
+++ oggdec.c	2002/07/19 06:25:58	1.9
@@ -187,7 +187,9 @@
     int percent = 0;
 
     if(!infile) {
-#ifdef _WIN32
+#ifdef __BORLANDC__
+        setmode(fileno(stdin), O_BINARY);
+#elif _WIN32
         _setmode(_fileno(stdin), _O_BINARY);
 #endif
         in = stdin;
@@ -201,7 +203,9 @@
     }
 
     if(!outfile) {
-#ifdef _WIN32
+#ifdef __BORLANDC__
+        setmode(fileno(stdout), O_BINARY);
+#elif _WIN32
         _setmode(_fileno(stdout), _O_BINARY);
 #endif
         out = stdout;

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list