FLTK logo

[fltk.coredev] Re: fltk-1.4 build error in Fl_WinAPI_System_Driver.cxx with 32-bit mingw

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: fltk-1.4 build error in Fl_WinAPI_System_Driver.cxx with 32-bit mingw imacarthur Apr 20, 2023  
 
On Thursday, 20 April 2023 at 13:25:48 UTC+1 imacarthur wrote:

We probably need to do something like (untested):

#ifdef _WIN32
#  if !(defined _WIN32_IE) || (_WIN32_IE < 0x0500)
#      undef _WIN32_IE
#      define _WIN32_IE  0x0500
#  endif /* _WIN32_WINNT checks */
#endif /* _WIN32 */


At the top of Fl_WinAPI_System_Driver.cxx as a workaround for this?

FWIW, I tried this tweak, and it seems to work.

That said, I do wonder if the issue is more to do with the mingw32 headers than with fltk per se.
I'm not convinced that enum definition should be guarded by the _WIN32_IE macro check at all... (And I do not have the "real" MS headers here to compare against, either.)


--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/c461d8b0-ffe6-4a70-b721-b64517336cd0n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.