Skip to content

Few fixes and notes for building on Visual Studio 2012 and earlier

Chun-wei Fan requested to merge vs2012-2-68 into glib-2-68

Hi,

This MR attempts to fix builds on Visual Studio 2012, by:

  • Defining NAN if not already defined, which is used in a test that is added in glib/tests/option-context.c.
  • Define variables at the top-of-block for gio/gsocket.c, since it does not allow one to declare a variable in a for loop initializer
  • Add notes about using roapi.h under plain C that is supplied in the Windows 8.0 SDK, as it needs a tweak.
  • Add notes on how to use the Windows 8.0 SDK with Visual Studio 2008/2010, as it is actually officially possible but requires a specific setup in the console environment.

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports