fopen with "rb" and "wb" on all platforms (it's OK 'cuz POSIX is supposed
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 28 Jan 2004 07:51:30 +0000 (07:51 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 28 Jan 2004 07:51:30 +0000 (07:51 +0000)
to ignore it anyway).

git-svn-id: http://svn.xiph.org/trunk/speex@5790 0101bb08-14d6-0310-b084-bc0e0c8e3800

src/speexdec.c
src/speexenc.c

index d98bbc6..1a6f9a3 100644 (file)
@@ -226,11 +226,7 @@ FILE *out_file_open(char *outFile, int rate, int *channels)
       }
       else 
       {
-#if defined WIN32 || defined _WIN32
          fout = fopen(outFile, "wb");
-#else
-         fout = fopen(outFile, "w");
-#endif
          if (!fout)
          {
             perror(outFile);
@@ -550,11 +546,7 @@ int main(int argc, char **argv)
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fin = fopen(inFile, "rb");
-#else
-      fin = fopen(inFile, "r");
-#endif
       if (!fin)
       {
          perror(inFile);
index 62bf9f3..0cee523 100644 (file)
@@ -435,11 +435,7 @@ int main(int argc, char **argv)
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fin = fopen(inFile, "rb");
-#else
-      fin = fopen(inFile, "r");
-#endif
       if (!fin)
       {
          perror(inFile);
@@ -553,11 +549,7 @@ int main(int argc, char **argv)
    }
    else 
    {
-#if defined WIN32 || defined _WIN32
       fout = fopen(outFile, "wb");
-#else
-      fout = fopen(outFile, "w");
-#endif
       if (!fout)
       {
          perror(outFile);