I included <windows.h>
header into my project, and I received following error:
Error C2467: illegal declaration of anonymous 'struct' (wingdi.h)
wingdi.h
header (it contains anonymous struct within _devicemodeW
) is included by windows.h
. Such situation conflicts with my current language settings (disable language extensions /Za
) As I understand, WinApi always uses language extensions and if I want to use winapi I should always use language extensions? (I am using msvc2015)