[MinGW-Users] Looks like winver.h needs to include winapifamily.h

Back to archive index
Eli Zaretskii eliz****@gnu*****
Thu Nov 26 03:24:41 JST 2020


> From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr****@ncbi*****>
> Date: Wed, 25 Nov 2020 18:06:24 +0000
> 
> Hi all,
> 
> It looks like "#include <winapifamily.h>" is missing from "winver.h", making, in particular, the C pre-processor to complain like this:
> 
> /usr/include/w32api/winver.h:159:29: error: missing binary operator before token "("
>   159 | #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
> 
> in sources that only include <winver.h> (and no other headers) -- for example, resource source files.
> 
> I'm building on the latest Cygwin (and I am certain there was no problem in the previous version until I upgraded the packages recently).

I think you are talking about MinGW64, in which case this is the wrong
forum to discuss that.  mingw.org's MinGW doesn't have any
WINAPI_FAMILY_PARTITION thing on or around line 159 of winver.h.



More information about the MinGW-Users mailing list
Back to archive index