diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-02-07 00:00:07 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-02-07 00:00:07 +0100 |
commit | 7ec566c66fcc0fbdfebc733b73ace264827d013a (patch) | |
tree | cf036e410c88bb3d01da899fb39871b578d01218 /base/libsidplay/libsidplay-1.36.59-gcc43.patch | |
parent | 18e7157481637cb2f234daeccfb24d00813a90a6 (diff) | |
download | nutyx-extra-7ec566c66fcc0fbdfebc733b73ace264827d013a.tar.gz nutyx-extra-7ec566c66fcc0fbdfebc733b73ace264827d013a.tar.bz2 nutyx-extra-7ec566c66fcc0fbdfebc733b73ace264827d013a.tar.xz nutyx-extra-7ec566c66fcc0fbdfebc733b73ace264827d013a.zip |
libsidplay, déplacé dans base
Diffstat (limited to 'base/libsidplay/libsidplay-1.36.59-gcc43.patch')
-rw-r--r-- | base/libsidplay/libsidplay-1.36.59-gcc43.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/base/libsidplay/libsidplay-1.36.59-gcc43.patch b/base/libsidplay/libsidplay-1.36.59-gcc43.patch new file mode 100644 index 000000000..8125e7ef3 --- /dev/null +++ b/base/libsidplay/libsidplay-1.36.59-gcc43.patch @@ -0,0 +1,41 @@ +diff --git a/src/sidtune.cpp b/src/sidtune.cpp +index 4d1d33b..6fbae80 100644 +--- a/src/sidtune.cpp ++++ b/src/sidtune.cpp +@@ -306,11 +306,7 @@ udword sidTune::loadFile(const char* fileName, ubyte** bufferRef) + return 0; + } + // Open binary input file stream at end of file. +-#if defined(SID_HAVE_IOS_BIN) +- ifstream myIn( fileName, ios::in|ios::bin|ios::ate ); +-#else + ifstream myIn( fileName, ios::in|ios::binary|ios::ate ); +-#endif + // As a replacement for !is_open(), bad() and the NOT-operator + // don't seem to work on all systems. + #if defined(SID_DONT_HAVE_IS_OPEN) +@@ -972,11 +968,7 @@ bool sidTune::saveC64dataFile( const char* fileName, bool overWriteFlag ) + } + // Open binary output file stream. + else +-#if defined(SID_HAVE_IOS_BIN) +- fMyOut.open( fileName, ios::out|ios::bin|ios::trunc ); +-#else + fMyOut.open( fileName, ios::out|ios::binary|ios::trunc ); +-#endif + if ( !fMyOut ) + { + info.statusString = text_cantCreateFile; +@@ -1061,11 +1053,7 @@ bool sidTune::savePSIDfile( const char* fileName, bool overWriteFlag ) + } + // Open binary output file stream. + else +-#if defined(SID_HAVE_IOS_BIN) +- fMyOut.open( fileName, ios::out|ios::bin|ios::trunc ); +-#else + fMyOut.open( fileName, ios::out|ios::binary|ios::trunc ); +-#endif + if ( !fMyOut ) + { + info.statusString = text_cantCreateFile; + |