Re: _WIN32_WINNT redefined?
niXman via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2022-11-02 08:21, niXman via Gdb wrote:
> On 2022-11-02 08:14, niXman via Gdb wrote:
>
>
> 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.
but it introduced another trouble:
```
mkdir -p -- nat/.deps
CXX gdb.o
CXX ada-exp.o
ada-exp.c.tmp:557: warning: "IN" redefined
In file included from
C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/windef.h:9,
from
C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from
../../../../src/gdb-11.2/gdb/../gdbsupport/common-defs.h:75,
from ../../../../src/gdb-11.2/gdb/defs.h:28,
from ada-exp.y:38:
C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/minwindef.h:57:
note: this is the location of the previous definition
57 | #define IN
|
ada-exp.c.tmp:482:11: error: 'INT' redeclared as different kind of
entity
In file included from
C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:
C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/winnt.h:299:15:
note: previous declaration 'typedef int INT'
299 | typedef int INT;
| ^~~
ada-exp.c.tmp:485:13: error: 'FLOAT' redeclared as different kind of
entity
C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/minwindef.h:142:17:
note: previous declaration 'typedef float FLOAT'
142 | typedef float FLOAT;
| ^~~~~
```
=)