#14949 closed build error (fixed)

patch to built wxWidget 2.9.4 with x86_64_mingw cross compiler

Reported by: schloegl Owned by:
Priority: normal Milestone:
Component: wxMSW Version: 2.9.4
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

When trying to built wxWidgets 2.9.4 with the mingw cross-compiler for 64bit windows target, a compiler error occurs. The following patch solves that problem.

--- ./src/msw/textctrl.cpp	2013-01-02 21:47:03.000000000 +0100
+++ ./src/msw/textctrl.cpp	2013-01-02 21:46:53.000000000 +0100
@@ -992,7 +992,7 @@
 
     EDITSTREAM eds;
     wxZeroMemory(eds);
-    eds.dwCookie = (DWORD)&data;
+    eds.dwCookie = (DWORD_PTR)&data;
     eds.pfnCallback = wxRichEditStreamOut;
 
     ::SendMessage

Attachments (1)

wxwidgets-1-fixes.patch download (330 bytes) - added by schloegl 22 months ago.
patch to fix built with x86_64_mingw cross-compiler

Download all attachments as: .zip

Change History (2)

Changed 22 months ago by schloegl

patch to fix built with x86_64_mingw cross-compiler

comment:1 Changed 21 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [73395]) 64 bit compilation fix for wxTextCtrl in wxMSW.

Use DWORD_PTR instead of DWORD for a pointer.

This was already done for another occurrence of the same cast in r58564 but
somehow this one fell through the cracks.

Close #14949.

Note: See TracTickets for help on using tickets.