1 diff -aur psid64-0.8/include/sidplay/sidint.h psid64-0.8-patched//include/sidplay/sidint.h
2 --- psid64-0.8/include/sidplay/sidint.h 2007-02-24 20:27:20.000000000 +0100
3 +++ psid64-0.8-patched//include/sidplay/sidint.h 2011-08-02 06:54:48.335780430 +0200
5 #define _INCLUDE_SIDPLAY_SIDINT_H 1
6 #ifndef _GENERATED_STDINT_H
7 #define _GENERATED_STDINT_H "psid64 0.8"
8 -/* generated using a gnu compiler version gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-51) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
9 +/* generated using a gnu compiler version gcc (GCC) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
13 diff -aur psid64-0.8/src/ConsoleApp.cpp psid64-0.8-patched//src/ConsoleApp.cpp
14 --- psid64-0.8/src/ConsoleApp.cpp 2006-10-15 12:26:33.000000000 +0200
15 +++ psid64-0.8-patched//src/ConsoleApp.cpp 2011-08-02 07:09:43.595755399 +0200
24 diff -aur psid64-0.8/src/libpsid64/psid64.cpp psid64-0.8-patched//src/libpsid64/psid64.cpp
25 --- psid64-0.8/src/libpsid64/psid64.cpp 2007-02-05 22:48:16.000000000 +0100
26 +++ psid64-0.8-patched//src/libpsid64/psid64.cpp 2011-08-02 07:04:14.335765106 +0200
28 Psid64::save(const char* fileName)
30 // Open binary output file stream.
31 - openmode createAttr = std::ios::out;
32 + std::ios_base::openmode createAttr = std::ios::out;
33 #if defined(HAVE_IOS_BIN)
34 createAttr |= std::ios::bin;
36 createAttr |= std::ios::binary;
39 - ofstream outfile(fileName, createAttr);
40 + ofstream outfile(fileName, createAttr);
41 return write(outfile);
44 diff -aur psid64-0.8/src/sidtune/SidTune.cpp psid64-0.8-patched//src/sidtune/SidTune.cpp
45 --- psid64-0.8/src/sidtune/SidTune.cpp 2006-10-21 09:35:35.000000000 +0200
46 +++ psid64-0.8-patched//src/sidtune/SidTune.cpp 2011-08-02 07:08:11.082423596 +0200
48 uint_least32_t fileLen = 0;
50 // This sucks big time
51 - openmode createAtrr = std::ios::in;
52 + std::ios_base::openmode createAtrr = std::ios::in;
53 #ifdef HAVE_IOS_NOCREATE
54 createAtrr |= std::ios::nocreate;
59 // Open binary output file stream.
60 - openmode createAttr = std::ios::out;
61 + std::ios_base::openmode createAttr = std::ios::out;
62 #if defined(HAVE_IOS_BIN)
63 createAttr |= std::ios::bin;
68 // Open ASCII output file stream.
69 - openmode createAttr = std::ios::out;
70 + std::ios_base::openmode createAttr = std::ios::out;
72 createAttr |= std::ios::trunc;
77 // Open binary output file stream.
78 - openmode createAttr = std::ios::out;
79 + std::ios_base::openmode createAttr = std::ios::out;
80 #if defined(HAVE_IOS_BIN)
81 createAttr |= std::ios::bin;
84 createAttr |= std::ios::trunc;
86 createAttr |= std::ios::app;
87 - std::ofstream fMyOut( fileName, createAttr );
88 + std::ofstream fMyOut( fileName, createAttr );
89 if ( !fMyOut || fMyOut.tellp()>0 )
91 info.statusString = SidTune::txt_cantCreateFile;