w32api.h
Marco Atzeri
marco.atzeri@gmail.com
Tue Dec 14 18:15:30 GMT 2021
On 14.12.2021 18:45, robhickey@gmx.com wrote:
> Hi Cygwin,
>
>
>
> I'm compiling a non Cygwin code using ./config, make, make install.
>
>
>
> The make output says /include/w32api file or directory not found.
probably you can at configure stage set the
prefix of include directory as "/usr"
> I'm guessing /include is not a standard directory, so I copied the
> /usr/include/w32api to /include/w32api/, the warning goes way.
a simple link was also probably enough
mkdir /include
ln -s /usr/include/w32api to /include/w32api
but checking the prefix is better.
> I also notice that w32api.h defines every version of windows but stops at
> windows8.
>
> #define WindowsVista 0x0600
>
> #define Windows7 0x0601
>
> #define Windows8 0x0602
>
>
> Is it permissible to add
>
> #define windows10 0X0603
what is your scope ?
If the original headers are not using that definition
adding it make no difference
By the way
https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170
reports a different value:
----------------------------------------------------------
#define _WIN32_WINNT_WIN7 0x0601 // Windows 7
#define _WIN32_WINNT_WIN8 0x0602 // Windows 8
#define _WIN32_WINNT_WINBLUE 0x0603 // Windows 8.1
#define _WIN32_WINNT_WINTHRESHOLD 0x0A00 // Windows 10
#define _WIN32_WINNT_WIN10 0x0A00 // Windows 10
----------------------------------------------------------
Regards
Marco
More information about the Cygwin
mailing list