Hi Ari,

On Fri, 02 Feb 2007 22:31:03 +0900, Arie Middelkoop <[EMAIL PROTECTED]> 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/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
wxhaskell-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to