diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-02 12:30:34 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-02 12:30:34 +0000 |
commit | 5ddce0f3614b1e50d11be33437ef9eee692fb5c0 (patch) | |
tree | 1eaeff383f514d5de7db47775b8593575c8a8413 | |
parent | 0a0ef220ab6f726022bec379f0ec321a93750ac2 (diff) | |
download | ports-5ddce0f3614b1e50d11be33437ef9eee692fb5c0.tar.gz ports-5ddce0f3614b1e50d11be33437ef9eee692fb5c0.zip |
Fix build on 64bit platforms
Notes
Notes:
svn path=/head/; revision=196957
-rw-r--r-- | cad/qfsm/files/patch-src::GState.cpp | 30 | ||||
-rw-r--r-- | games/gnmm/files/patch-gnmm.cc | 11 |
2 files changed, 39 insertions, 2 deletions
diff --git a/cad/qfsm/files/patch-src::GState.cpp b/cad/qfsm/files/patch-src::GState.cpp index 99ec380f5f5a..6b8e2531609e 100644 --- a/cad/qfsm/files/patch-src::GState.cpp +++ b/cad/qfsm/files/patch-src::GState.cpp @@ -1,5 +1,5 @@ ---- src/GState.cpp.orig Sat Mar 6 22:41:05 2004 -+++ src/GState.cpp Wed Mar 17 00:07:34 2004 +--- src/GState.cpp.orig 2004-11-21 14:48:41.000000000 +0100 ++++ src/GState.cpp 2007-08-02 14:07:00.000000000 +0200 @@ -16,7 +16,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -9,3 +9,29 @@ #include <qpen.h> #include <qbrush.h> +@@ -196,9 +196,9 @@ + t->getCPoint2(c2x, c2y); + info = t->getInfo(); + +- qDebug("Adresse: %d", (int)t); +- qDebug("Start: %d", (int)t->getStart()); +- qDebug("Ende: %d", (int)t->getEnd()); ++ qDebug("Adresse: %d", (intptr_t)t); ++ qDebug("Start: %d", (intptr_t)t->getStart()); ++ qDebug("Ende: %d", (intptr_t)t->getEnd()); + qDebug("Inputs: %s", info->getInputsStrBin(/*numin*/).latin1()); + qDebug("Outputs: %s", info->getOutputsStrBin(/*numout*/).latin1()); + qDebug(" "); +@@ -215,9 +215,9 @@ + t->getCPoint2(c2x, c2y); + info = t->getInfo(); + +- qDebug("Adresse: %d", (int)t); +- qDebug("Start: %d", (int)t->getStart()); +- qDebug("Ende: %d", (int)t->getEnd()); ++ qDebug("Adresse: %d", (intptr_t)t); ++ qDebug("Start: %d", (intptr_t)t->getStart()); ++ qDebug("Ende: %d", (intptr_t)t->getEnd()); + qDebug("Inputs: %s", info->getInputsStrBin(/*numin*/).latin1()); + qDebug("Outputs: %s", info->getOutputsStrBin(/*numout*/).latin1()); + qDebug(" "); diff --git a/games/gnmm/files/patch-gnmm.cc b/games/gnmm/files/patch-gnmm.cc new file mode 100644 index 000000000000..9e971192f73a --- /dev/null +++ b/games/gnmm/files/patch-gnmm.cc @@ -0,0 +1,11 @@ +--- src/gnmm.cc.orig 2007-08-02 14:24:29.000000000 +0200 ++++ src/gnmm.cc 2007-08-02 14:24:52.000000000 +0200 +@@ -177,7 +177,7 @@ + if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) + return; + +- int id = (int)data; ++ intptr_t id = (intptr_t)data; + + if (id>=10) pref_black_level = id-10; + else pref_white_level = id; |