Few fixes and notes for building on Visual Studio 2012 and earlier
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 inglib/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 afor
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!