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

Jean-Marc Valin jm at xiph.org
Tue Jan 27 23:51:31 PST 2004



jm          04/01/28 02:51:31

  Modified:    src      speexdec.c speexenc.c
  Log:
  fopen with "rb" and "wb" on all platforms (it's OK 'cuz POSIX is supposed
  to ignore it anyway).

Revision  Changes    Path
1.87      +0 -8      speex/src/speexdec.c

Index: speexdec.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexdec.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- speexdec.c	20 Jan 2004 08:08:51 -0000	1.86
+++ speexdec.c	28 Jan 2004 07:51:29 -0000	1.87
@@ -226,11 +226,7 @@
       }
       else 
       {
-#if defined WIN32 || defined _WIN32
          fout = fopen(outFile, "wb");
-#else
-         fout = fopen(outFile, "w");
-#endif
          if (!fout)
          {
             perror(outFile);
@@ -550,11 +546,7 @@
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fin = fopen(inFile, "rb");
-#else
-      fin = fopen(inFile, "r");
-#endif
       if (!fin)
       {
          perror(inFile);

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

Index: speexenc.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexenc.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- speexenc.c	20 Jan 2004 08:08:51 -0000	1.84
+++ speexenc.c	28 Jan 2004 07:51:30 -0000	1.85
@@ -435,11 +435,7 @@
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fin = fopen(inFile, "rb");
-#else
-      fin = fopen(inFile, "r");
-#endif
       if (!fin)
       {
          perror(inFile);
@@ -553,11 +549,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