From e43350e40e79a0e44cdd603091e955a6e6656e69 Mon Sep 17 00:00:00 2001 From: maldoror Date: Tue, 11 May 2010 19:46:34 +0200 Subject: system/par2cmdline: Updated for version 0.4 --- system/par2cmdline/par2cmdline-0.4-gcc4.patch | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 system/par2cmdline/par2cmdline-0.4-gcc4.patch (limited to 'system/par2cmdline/par2cmdline-0.4-gcc4.patch') diff --git a/system/par2cmdline/par2cmdline-0.4-gcc4.patch b/system/par2cmdline/par2cmdline-0.4-gcc4.patch new file mode 100644 index 0000000000..a0bfbd2796 --- /dev/null +++ b/system/par2cmdline/par2cmdline-0.4-gcc4.patch @@ -0,0 +1,56 @@ +--- reedsolomon.cpp.orig 2007-07-06 00:50:38.000000000 +0100 ++++ reedsolomon.cpp 2007-07-06 00:58:05.000000000 +0100 +@@ -51,7 +51,7 @@ + } + } + +-bool ReedSolomon::SetInput(const vector &present) ++template <> bool ReedSolomon::SetInput(const vector &present) + { + inputcount = (u32)present.size(); + +@@ -80,7 +80,7 @@ + return true; + } + +-bool ReedSolomon::SetInput(u32 count) ++template <> bool ReedSolomon::SetInput(u32 count) + { + inputcount = count; + +@@ -101,7 +101,7 @@ + return true; + } + +-bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) ++template <> bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) + { + // Look up the appropriate element in the RS matrix + Galois8 factor = leftmatrix[outputindex * (datapresent + datamissing) + inputindex]; +@@ -189,7 +189,7 @@ + + // Set which of the source files are present and which are missing + // and compute the base values to use for the vandermonde matrix. +-bool ReedSolomon::SetInput(const vector &present) ++template <> bool ReedSolomon::SetInput(const vector &present) + { + inputcount = (u32)present.size(); + +@@ -233,7 +233,7 @@ + + // Record that the specified number of source files are all present + // and compute the base values to use for the vandermonde matrix. +-bool ReedSolomon::SetInput(u32 count) ++template <> bool ReedSolomon::SetInput(u32 count) + { + inputcount = count; + +@@ -267,7 +267,7 @@ + return true; + } + +-bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) ++template <> bool ReedSolomon::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer) + { + // Look up the appropriate element in the RS matrix + -- cgit v1.2.3