archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libsidplay / trunk / libsidplay-1.36.59-gcc43.patch
blob5beef46c6c1443ff32cf8ec1144b1a3531604bfb
1 diff --git a/src/sidtune.cpp b/src/sidtune.cpp
2 index 4d1d33b..6fbae80 100644
3 --- a/src/sidtune.cpp
4 +++ b/src/sidtune.cpp
5 @@ -306,11 +306,7 @@ udword sidTune::loadFile(const char* fileName, ubyte** bufferRef)
6 return 0;
8 // Open binary input file stream at end of file.
9 -#if defined(SID_HAVE_IOS_BIN)
10 - ifstream myIn( fileName, ios::in|ios::bin|ios::ate );
11 -#else
12 ifstream myIn( fileName, ios::in|ios::binary|ios::ate );
13 -#endif
14 // As a replacement for !is_open(), bad() and the NOT-operator
15 // don't seem to work on all systems.
16 #if defined(SID_DONT_HAVE_IS_OPEN)
17 @@ -972,11 +968,7 @@ bool sidTune::saveC64dataFile( const char* fileName, bool overWriteFlag )
19 // Open binary output file stream.
20 else
21 -#if defined(SID_HAVE_IOS_BIN)
22 - fMyOut.open( fileName, ios::out|ios::bin|ios::trunc );
23 -#else
24 fMyOut.open( fileName, ios::out|ios::binary|ios::trunc );
25 -#endif
26 if ( !fMyOut )
28 info.statusString = text_cantCreateFile;
29 @@ -1061,11 +1053,7 @@ bool sidTune::savePSIDfile( const char* fileName, bool overWriteFlag )
31 // Open binary output file stream.
32 else
33 -#if defined(SID_HAVE_IOS_BIN)
34 - fMyOut.open( fileName, ios::out|ios::bin|ios::trunc );
35 -#else
36 fMyOut.open( fileName, ios::out|ios::binary|ios::trunc );
37 -#endif
38 if ( !fMyOut )
40 info.statusString = text_cantCreateFile;