summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/sptk/files/sptk-gcc-4.4.patch')
-rw-r--r--dev-cpp/sptk/files/sptk-gcc-4.4.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-cpp/sptk/files/sptk-gcc-4.4.patch b/dev-cpp/sptk/files/sptk-gcc-4.4.patch
new file mode 100644
index 000000000000..e14555d4f684
--- /dev/null
+++ b/dev-cpp/sptk/files/sptk-gcc-4.4.patch
@@ -0,0 +1,51 @@
+diff -uNr sptk-3.5.8.14/examples/registry.cpp sptk-3.5.8.14.fix/examples/registry.cpp
+--- sptk-3.5.8.14/examples/registry.cpp 2008-06-28 15:43:06.000000000 +1000
++++ sptk-3.5.8.14.fix/examples/registry.cpp 2009-08-09 09:42:56.000000000 +1000
+@@ -66,7 +66,9 @@
+ cout << "The registry doesn't contain window information" << endl;
+ }
+ }
+- catch (exception& e) { puts(e.what()); }
++ catch (exception& e) {
++ cerr << e.what() << endl;
++ }
+ }
+
+ void updateRegistry(CRegistryMode mode) {
+@@ -97,8 +99,8 @@
+
+ mySettings.save();
+ }
+- catch (exception& e) {
+- puts(e.what());
++ catch (exception& e) {
++ cerr << e.what() << endl;
+ }
+ }
+
+diff -uNr sptk-3.5.8.14/src/utils/CVariant.cpp sptk-3.5.8.14.fix/src/utils/CVariant.cpp
+--- sptk-3.5.8.14/src/utils/CVariant.cpp 2008-08-29 15:24:23.000000000 +1000
++++ sptk-3.5.8.14.fix/src/utils/CVariant.cpp 2009-08-09 09:36:25.000000000 +1000
+@@ -40,6 +40,7 @@
+
+ #include <map>
+ #include <math.h>
++#include <stdio.h>
+
+ using namespace std;
+ using namespace sptk;
+diff -uNr sptk-3.5.8.14/.themes.sptk/tar2h.cpp sptk-3.5.8.14.fix/.themes.sptk/tar2h.cpp
+--- sptk-3.5.8.14/.themes.sptk/tar2h.cpp 2007-07-21 12:54:26.000000000 +1000
++++ sptk-3.5.8.14.fix/.themes.sptk/tar2h.cpp 2009-08-09 09:32:50.000000000 +1000
+@@ -33,8 +33,9 @@
+ return 1;
+ }
+
+- printf("static size_t %s_len = %ld;\n", argv[2], st.st_size);
+- printf("static unsigned char %s[%ld] = {\n", argv[2], st.st_size);
++ long sz = st.st_size;
++ printf("static size_t %s_len = %ld;\n", argv[2], sz);
++ printf("static unsigned char %s[%ld] = {\n", argv[2], sz);
+
+ x = (unsigned char *)malloc(st.st_size);
+