Re[2]: Macros redefinition

Vadim Zeitlin <[email protected]> Sat, 18 Apr 2026 15:28:48 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
--8323329-1237379107-1776518928=:3987
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE

On Sat, 18 Apr 2026 15:21:48 +0200 Paris Rossano wrote:

PR> in all my .cpp files I normally use this sequence:
PR> 
PR> #include <wx/wxprec.h>
PR> 
PR> #ifndef WX_PRECOMP
PR> #include <wx/wx.h>
PR> #endif
PR> 
PR> then follow wx includes,for instance:
PR> #include <wx/filedlg.h>
PR> #include <wx/filename.h>
PR> 
PR> then follow my application includes

 This is perfectly standard and I don't see any such warnings when doing
this with MSVS 2022. Either this has somehow changed in MSVS 2026 (I don't
have it yet, so can't test myself) or, more likely, there is something I'm
missing here.

 Do you get the same warnings when building minimal sample?
VZ

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

--8323329-1237379107-1776518928=:3987
Content-Type: APPLICATION/PGP-SIGNATURE

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

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaeOHEAAKCRAG6kHeT2we
hjHBAJ9yO5zOfrLYDmZG/fFPxnUT/rdn3wCfTXuEZMUtzqY1OI10Al31/ihxdEw=
=f9xt
-----END PGP SIGNATURE-----

--8323329-1237379107-1776518928=:3987--