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
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