[xiph-cvs] cvs commit: speex/src speexdec.c speexenc.c

Jean-Marc Valin jm at xiph.org
Fri Jan 30 22:58:34 PST 2004



jm          04/01/31 01:58:33

  Modified:    src      Tag: rel-1-0-branch speexdec.c speexenc.c
  Log:
  fopen with "wb" and "rb" on all platforms (not just Win32)

Revision  Changes    Path
No                   revision

<p>No                   revision

<p>1.74.2.6  +0 -8      speex/src/speexdec.c

Index: speexdec.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexdec.c,v
retrieving revision 1.74.2.5
retrieving revision 1.74.2.6
diff -u -r1.74.2.5 -r1.74.2.6
--- speexdec.c	30 Sep 2003 00:42:14 -0000	1.74.2.5
+++ speexdec.c	31 Jan 2004 06:58:30 -0000	1.74.2.6
@@ -226,11 +226,7 @@
       }
       else 
       {
-#if defined WIN32 || defined _WIN32
          fout = fopen(outFile, "wb");
-#else
-         fout = fopen(outFile, "w");
-#endif
          if (!fout)
          {
             perror(outFile);
@@ -542,11 +538,7 @@
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fin = fopen(inFile, "rb");
-#else
-      fin = fopen(inFile, "r");
-#endif
       if (!fin)
       {
          perror(inFile);

<p><p>1.76.2.5  +0 -8      speex/src/speexenc.c

Index: speexenc.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexenc.c,v
retrieving revision 1.76.2.4
retrieving revision 1.76.2.5
diff -u -r1.76.2.4 -r1.76.2.5
--- speexenc.c	20 Sep 2003 05:41:25 -0000	1.76.2.4
+++ speexenc.c	31 Jan 2004 06:58:30 -0000	1.76.2.5
@@ -416,11 +416,7 @@
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fin = fopen(inFile, "rb");
-#else
-      fin = fopen(inFile, "r");
-#endif
       if (!fin)
       {
          perror(inFile);
@@ -532,11 +528,7 @@
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fout = fopen(outFile, "wb");
-#else
-      fout = fopen(outFile, "w");
-#endif
       if (!fout)
       {
          perror(outFile);

<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