Looks like winver.h needs to include winapifamily.h

"Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <[email protected]> Wed, 25 Nov 2020 18:06:24 +0000
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <DM8PR09MB719149CF3ECBEFC449CB1E78A5FA0@DM8PR09MB7191.namprd09.prod.outlook.com>
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).

Any clarification would be greatly appreciated.

Thanks,
Anton

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Posting Etiquette, as described at https://mingw.osdn.io/index.html?page=mailing.html#list-etiquette.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe