Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 53467
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 804.028_501
Fixed in: 804.028_502



Subject: Support for mingw-w64 gcc compiler (MS Windows)
Hi

I would like to propose the following simple patch that is needed for building with mingw-w64.sf.net gcc compiler (technically it is a competitor to gcc compiler from mingw.org project - the main advantage is that mingw-w64 delivers both 32/64-bit compilers).

The patch is related to tkWinX.c

- #ifndef _WIN32_IE
+ #if !defined( _WIN32_IE) && !defined(__MINGW64_VERSION_MAJOR)
  #define _WIN32_IE 0x0300
  #endif

The reason for this patch is that value of _WIN32_IE is properly defined in commctrl.h and the value set in tkWinX.c is in collision with one in commctrl.h which in the end leads to the following error:

..../include/commctrl.h:14:2: error: #error _WIN32_IE setting conflicts

--
kmx
On Thu Jan 07 03:19:24 2010, KMX wrote: Show quoted text
> Hi > > I would like to propose the following simple patch that is needed for > building > with mingw-w64.sf.net gcc compiler (technically it is a competitor to > gcc > compiler from mingw.org project - the main advantage is that mingw-w64 > delivers > both 32/64-bit compilers). > > The patch is related to tkWinX.c > > - #ifndef _WIN32_IE > + #if !defined( _WIN32_IE) && !defined(__MINGW64_VERSION_MAJOR) > #define _WIN32_IE 0x0300 > #endif > > The reason for this patch is that value of _WIN32_IE is properly > defined in > commctrl.h and the value set in tkWinX.c is in collision with one in > commctrl.h > which in the end leads to the following error: > > ..../include/commctrl.h:14:2: error: #error _WIN32_IE setting > conflicts >
Thanks, it is patched in the svn repo (https://svn.perl.org/modules/Tk/trunk @ 13766) Can you try if it works now correctly? Regards, Slaven
Show quoted text
> Can you try if it works now correctly?
Revision 13772 is OK - with 32bit compiler by mingw-w64.sf.net project (still some issues on 64bit)

Is there any chance to see at least a Tk dev version with this fix on CPAN?

Thanks.

--
kmx


Show quoted text
> Is there any chance to see at least a Tk dev version with this fix on
> CPAN?

Thanks for Tk-804.028_502

--
kmx