diff options
author | arved <arved@FreeBSD.org> | 2007-08-02 20:30:34 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-08-02 20:30:34 +0800 |
commit | cff079e378eea9ad7723b33b2c630b022140384e (patch) | |
tree | 43cf213e42ea2702b5a62b84f54f274724b8f47c | |
parent | 1eefeb38b357a5cb73b6a797818f3c8ca0787445 (diff) | |
download | freebsd-ports-graphics-cff079e378eea9ad7723b33b2c630b022140384e.tar.gz freebsd-ports-graphics-cff079e378eea9ad7723b33b2c630b022140384e.tar.zst freebsd-ports-graphics-cff079e378eea9ad7723b33b2c630b022140384e.zip |
Fix build on 64bit platforms
-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 99ec380f5f5..6b8e2531609 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 00000000000..9e971192f73 --- /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; |