Fix gatomic.c compilation on Windows (MSVC)
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 7 Jun 2011 00:20:15 +0000 (08:20 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 7 Jun 2011 00:20:15 +0000 (08:20 +0800)
commitfba436f2cb894646d758cc32e3a1ae839591a11f
tree0899ceefab064f2c7279af75760dad5be48f97d8
parent62072b2a043ab872e45c89b6f7f9073cd7035bf5
Fix gatomic.c compilation on Windows (MSVC)

-windows.h must be included for the functions[1] to be found during
 compilation
-For Win32(x86), the InterlockedAnd, InterlockedOr and InterlockedXor
 functions need to be preceded with an underscore. This is mandated
 by the "For the x86 architecture..." clause under "Remarks"[2]
-This will close Bug 652000

[1]:http://msdn.microsoft.com/en-us/library/ms684122(v=vs.85).aspx
[2]:http://msdn.microsoft.com/en-us/library/ms683516(v=vs.85).aspx
    http://msdn.microsoft.com/en-us/library/ms683626(v=vs.85).aspx
    http://msdn.microsoft.com/en-us/library/ms684021(v=vs.85).aspx
glib/gatomic.c