diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2006-10-26 10:21:07 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2006-10-26 10:21:07 +0000 |
commit | 971372f6d34047da1aaed96861de56e4f37d58ae (patch) | |
tree | c698edb99a5106c8ac11786dfcff2f40c147774a /dev-cpp/libthrowable/files | |
parent | dev-cpp/libthrowable: keyworded ~ppc, thanks to Chris White for testing it (diff) | |
download | sunrise-971372f6d34047da1aaed96861de56e4f37d58ae.tar.gz sunrise-971372f6d34047da1aaed96861de56e4f37d58ae.tar.bz2 sunrise-971372f6d34047da1aaed96861de56e4f37d58ae.zip |
dev-cpp/libthrowable: make it build on 64bit system (probably, tests will follow)
svn path=/sunrise/; revision=1674
Diffstat (limited to 'dev-cpp/libthrowable/files')
-rw-r--r-- | dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.cc-64bit.patch | 60 | ||||
-rw-r--r-- | dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.h-64bit.patch | 11 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.cc-64bit.patch b/dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.cc-64bit.patch new file mode 100644 index 000000000..7b713a672 --- /dev/null +++ b/dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.cc-64bit.patch @@ -0,0 +1,60 @@ +--- libthrowable/internal/internal.cc 2006-10-15 11:48:19.000000000 +0200 ++++ /tmp/internal.cc 2006-10-26 11:57:06.000000000 +0200 +@@ -26,7 +26,7 @@ + string tabsToSpaces(const string& str, unsigned spaces) throw() + { + string ret(str); +- unsigned pos=0; ++ string::size_type pos=0; + while(true) + { + pos = ret.find('\t', pos); +@@ -108,7 +108,7 @@ + if(line.empty()) + return -1; + +- unsigned ret = line.find_first_not_of(' '); ++ string::size_type ret = line.find_first_not_of(' '); + if(ret != string::npos) + return local::unsignedToInt(ret); + return -1; +@@ -121,10 +121,10 @@ + const int iIndent = getIndent(line); + if(iIndent < 0) + return string::npos; +- const unsigned indent = static_cast<unsigned>(iIndent); ++ const string::size_type indent = static_cast<string::size_type>(iIndent); + //if possible, break after one of the following characters: + //" .,;" +- unsigned ret = line.find_last_of(" ,;.", pos-1); ++ string::size_type ret = line.find_last_of(" ,;.", pos-1); + if(ret != string::npos && ret > indent) + return ret; + //maybe we can find a break point by looking after these chars: +@@ -187,7 +187,7 @@ + ret += "--" + util::stringify(virtualIndentDiff) + "--spaces-->\n"; + else if(virtualIndentDiff < 0) + ret += "<--" + util::stringify(-virtualIndentDiff) + "-spaces--\n"; +- ret += line.substr(static_cast<unsigned>(virtualIndent)); ++ ret += line.substr(static_cast<string::size_type>(virtualIndent)); + lastVirtualIndent = virtualIndent; + } + return ret; +@@ -215,7 +215,7 @@ + string prefix(indent, ' '); + while(true) + { +- unsigned breakAt = getLinebreakPosNear(lines.back(), _width); ++ string::size_type breakAt = getLinebreakPosNear(lines.back(), _width); + if(breakAt == string::npos) + break; + +@@ -240,7 +240,7 @@ + } + } + } +- for(unsigned i=0; i != lines.size(); ++i) ++ for(string::size_type i=0; i != lines.size(); ++i) + { + if(i != 0) + ret += "\n"; diff --git a/dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.h-64bit.patch b/dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.h-64bit.patch new file mode 100644 index 000000000..f3714a6dd --- /dev/null +++ b/dev-cpp/libthrowable/files/libthrowable-0.9.5-internal.h-64bit.patch @@ -0,0 +1,11 @@ +--- libthrowable/internal/internal.h 2006-10-26 12:03:56.000000000 +0200 ++++ /tmp/internal.h 2006-10-26 11:53:51.000000000 +0200 +@@ -2,6 +2,8 @@ + #define H_LIBTHROWABLE_INTERNAL + #include "libthrowable/os.h" + #include <stack> ++#include <string> ++ + namespace libthrowable { + namespace internal { + |