Re: _WIN32_WINNT redefined?
Eli Zaretskii via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
> Date: Wed, 02 Nov 2022 08:44:09 +0000 > From: niXman via Gdb <[email protected]> > > > looks like it can be defined here: > > https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdbsupport/common-defs.h;h=e4985332e3f4016ccec2b2502dfe28bab16e2c92;hb=HEAD#l81 > > > > > > as 0x0500 if it wasn't defined before... > > > right, because inclusion of windows.h here > (https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdbsupport/common-defs.h;h=e4985332e3f4016ccec2b2502dfe28bab16e2c92;hb=HEAD#l74) > after line 74 solves the trouble. Do you mean that the w32api headers you use _override_ any external definition of _WIN32_WINNT? They shouldn't: this macro exists to control what w32api headers expose and what they don't, so including windows.h should not change its value.