Re[2]: Macros redefinition

Vadim Zeitlin <[email protected]> Mon, 20 Apr 2026 23:11:26 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
--8323329-298625210-1776719486=:3987
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE

On Mon, 20 Apr 2026 08:30:38 +0200 Paris Rossano wrote:

PR> I searched for my issue, and it was due to |WIN32_LEAN_AND_MEAN|, which was 
PR> silently lying in my project's preprocessor definitions since I added 
PR> |wxWebView| to my application.
PR> I simply removed |WIN32_LEAN_AND_MEAN|, which is no longer needed.

 I see, defining WIN32_LEAN_AND_MEAN means that lesser used headers are not
included by windows.h, which results in these symbols not being defined
after its inclusion, but being defined later when the header defining them
is included directly.

 I think we can avoid this problem by moving the definitions of "missing"
(not really in this case) from wx/msw/missing.h to webview_missing.h, as I
just did in https://github.com/wxWidgets/wxWidgets/pull/26400 which, I
think, should avoid the issue even if you restore WIN32_LEAN_AND_MEAN.

 Thanks for finding the underlying reason for this problem,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/

--8323329-298625210-1776719486=:3987
Content-Type: APPLICATION/PGP-SIGNATURE

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaeaWfgAKCRAG6kHeT2we
hui2AJ4kzmj8OOVziDNf6qBrYbL2p3wY+ACgm8HVj/OavM+OP9Ug/gSDKLTuHpk=
=es6+
-----END PGP SIGNATURE-----

--8323329-298625210-1776719486=:3987--