From: shelarcy <she...@gm...> - 2007-02-02 14:47:04
|
Hi Ari, On Fri, 02 Feb 2007 22:31:03 +0900, Arie Middelkoop <ar...@cs...> wrote: > I managed to fix the problem of incorrect polygon drawing on 64-bit > machines. It is basically a similar fix of what I send in a long time > ago, but it has portability issues with respect to win32: > > A simple fix is to change (in wxc/src/ewxw/eljdc.cpp) the cast to (int*) > to the cast to (intptr_t*). On a 64-bit machine, this will cause a > correct read of the 64-bit int (provided by the Haskell world) and > truncates it to a 32-bit int required by wxWidgets. > > What I remember is that intptr_t is not defined in win32. How was this > solved previous time? inttypes.h doesn't exist in Visual C++ 7 (Visual Studio 2003). But intptr_t is available by io.h. So I added compilation flag to build both gcc and Visual C++. http://sourceforge.net/mailarchive/forum.php?thread_id=31202423&forum_id=34197 http://darcs.haskell.org/wxhaskell/wxc/include/wrapper.h Best Regards, -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |