Re: Macros redefinition

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

On Sat, 18 Apr 2026 06:01:33 -0700 (PDT) Rossano Paris wrote:

RP> Does anyone know how to get rid of the following warnings?
RP> Are they something that should be solved in the library?
RP> 
RP> Visual studio 2026
RP> MSW SDK:10.0.26100.0
RP> wx: v3.3.2
RP> 
RP> 1>C:\Program Files (x86)\Windows 
RP> Kits\10\Include\10.0.26100.0\um\urlmon.h(751,9): warning C4005: 
RP> 'INET_E_CANNOT_LOCK_REQUEST': macro redefinition
RP> 1>  (compiling source file 
RP> 'file:///sln/client/threads/core/ThClientInformation.cpp')
RP> 1>     
RP>  \\192.168.84.1\workspace\develop\wxw\wx\wxWidgets-3.3.3\include\wx\msw\missing.h(360,9):
RP> 1>      see previous definition of 'INET_E_CANNOT_LOCK_REQUEST'

 This is strange because wx/msw/missing.h only defines this symbol (and all
the other ones) if it's not defined after including windows.h.

 What headers exactly does your source file include and in what order?

 Regards,
VZ

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

--8323329-1876855542-1776517624=:3987
Content-Type: APPLICATION/PGP-SIGNATURE

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

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaeOB9wAKCRAG6kHeT2we
hsmmAJ0d+4mpfZOP2vZb8c3JUEArtEwPIwCePRTm5GWLFRrOxJLqKnpcWgLqVQc=
=5sG8
-----END PGP SIGNATURE-----

--8323329-1876855542-1776517624=:3987--