steghide-0.5.1-gcc4.patch (1969B)
1 diff -Naur steghide-0.5.1-orig/src/AuData.h steghide-0.5.1/src/AuData.h 2 --- steghide-0.5.1-orig/src/AuData.h 2003-09-28 09:30:29.000000000 -0600 3 +++ steghide-0.5.1/src/AuData.h 2007-05-11 22:04:56.000000000 -0600 4 @@ -26,22 +26,30 @@ 5 6 // AuMuLawAudioData 7 typedef AudioDataImpl<AuMuLaw,BYTE> AuMuLawAudioData ; 8 +template<> 9 inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; } 10 +template<> 11 inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; } 12 13 // AuPCM8AudioData 14 typedef AudioDataImpl<AuPCM8,SBYTE> AuPCM8AudioData ; 15 +template<> 16 inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; } 17 +template<> 18 inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; } 19 20 // AuPCM16AudioData 21 typedef AudioDataImpl<AuPCM16,SWORD16> AuPCM16AudioData ; 22 +template<> 23 inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; } 24 +template<> 25 inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; } 26 27 // AuPCM32AudioData 28 typedef AudioDataImpl<AuPCM32,SWORD32> AuPCM32AudioData ; 29 +template<> 30 inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; } 31 +template<> 32 inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; } 33 34 #endif // ndef SH_AUDATA_H 35 diff -Naur steghide-0.5.1-orig/src/MHashPP.cc steghide-0.5.1/src/MHashPP.cc 36 --- steghide-0.5.1-orig/src/MHashPP.cc 2003-10-05 04:17:50.000000000 -0600 37 +++ steghide-0.5.1/src/MHashPP.cc 2007-05-11 22:07:01.000000000 -0600 38 @@ -120,7 +120,7 @@ 39 40 std::string MHashPP::getAlgorithmName (hashid id) 41 { 42 - char *name = mhash_get_hash_name (id) ; 43 + char *name = (char *) mhash_get_hash_name (id) ; 44 std::string retval ; 45 if (name == NULL) { 46 retval = std::string ("<algorithm not found>") ;