Skip to content

Visual Studio builds: Use msvc_recommended_pragmas.h from GLib

Chun-wei Fan requested to merge msvc.improvements into master

Hi,

This commit updates the build files to force-include msvc_recommended_pragmas.h so that we can make the warnings during the build that should raise real concern stand out to us on Visual Studio builds. These warnings are more or less the warnings that the GCC/CLang builds try to catch, as far as possible.

This also updates the scannerlexer.l sources file so that the proper system headers are included, as unistd.h is not available on Visual Studio.

This will remove the checks for the various GCC-isque CFlags that are not meaningful on Visual Studio builds.

With blessings, thank you!

Merge request reports