在 2022/12/21 17:56, Biswapriyo Nath 写道:
Thanks, defining `WIN32_LEAN_AND_MEAN` fixes the issue in the
android-tools project. Though I am not sure if it works for all cases.
I am not sure what others typically do though - probably `WIN32_LEAN_AND_MEAN` should always be
defined, so code that doe
> Isn't the person who has done that supposed to have acknowledged that
> `interface` is a macro which shouldn't be used for variables?
It does not occur with a single project. In my original post, the
project is system/core repository for Android. I have seen this issue
with another project name
在 2022/12/21 17:06, Alvin Wong via Mingw-w64-public 写道:
On 21/12/2022 16:45, LIU Hao wrote:
If you define `WIN32_LEAN_AND_MEAN` (either `#define` it or pass `-DWIN32_LEAN_AND_MEAN` to GCC)
before inclusion of , then the error will go away. This seems to be yet another reason
why `WIN32_LEAN_AND
Thanks, defining `WIN32_LEAN_AND_MEAN` fixes the issue in the
android-tools project. Though I am not sure if it works for all cases.
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mi
On 21/12/2022 16:45, LIU Hao wrote:
If you define `WIN32_LEAN_AND_MEAN` (either `#define` it or pass
`-DWIN32_LEAN_AND_MEAN` to GCC) before inclusion of , then
the error will go away. This seems to be yet another reason why
`WIN32_LEAN_AND_MEAN` should be preferred.
...which only works if yo
在 2022/12/21 13:05, Biswapriyo Nath 写道:
In various headers, the name 'interface' is a macro which is defined
to 'struct' keyword. But that causes problem in code where 'interface'
is used as a variable name. Here are the list of headers in mingw-w64
The `interface` macro is used to make decla
The 'interface' name as a macro is used in many headers and idl files.
undef'd it may not be a perfect solution for all use cases. One thing
I am curious about how projects use 'interface' name as a macro and
successfully compiled it with msvc, whereas a simple example code in
my OP fails with msvc
I recall that I simply undef'd "interface" in my fork of the JDK to get
it to compile with gcc, would be great if this could be fixed, as I'm
fairly certain Visual C++ does not have this issue, strangely enough
best regards,
Julian
On Wed, Dec 21, 2022 at 1:06 PM Biswapriyo Nath
wrote:
> In var
In various headers, the name 'interface' is a macro which is defined
to 'struct' keyword. But that causes problem in code where 'interface'
is used as a variable name. Here are the list of headers in mingw-w64
```
$ grep -r "define interface"
basetyps.h:#define interface __STRUCT__
basetyps.h:#def