Add MSVC implementations of G_GNUC_*_IGNORE_DEPRECATIONS
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 19 Jul 2013 11:10:41 +0000 (19:10 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 29 Jul 2013 02:26:01 +0000 (10:26 +0800)
commitd0b4f59e8cffc9da8d6e2a856687d34ed2765c3a
treeefbaee2757756b762a637e3fd662ebb96bcb1eff
parent90da4ed628cf9e311c4730d529b5d53159035676
Add MSVC implementations of G_GNUC_*_IGNORE_DEPRECATIONS

As Visual Studio 2008 and later have support for the __pragma keyword,
where the compiler pragmas can be used in a macro, we can support
G_GNUC_BEGIN_IGNORE_DEPRECATIONS and G_GNUC_END_IGNORE_DEPRECATIONS
for Visual Studio 2008 and later, so many deprecation (C4996) warnings
can be suppressed when using these compilers when we use these macros
in the code.

https://bugzilla.gnome.org/show_bug.cgi?id=704543
glib/gmacros.h