win32: Fix GDBusDaemon build when glib is built as a static lib
authorKalev Lember <kalevlember@gmail.com>
Sun, 2 Dec 2012 14:34:37 +0000 (15:34 +0100)
committerKalev Lember <kalevlember@gmail.com>
Sun, 2 Dec 2012 17:19:31 +0000 (18:19 +0100)
commit80c24d36f2525d83e458ebbdf62fdbd085945a02
treeb52a6aa4cd9468d15a176db6971abe920e284de1
parent4a506290a701a890b4609ac979f8e1d11935a39e
win32: Fix GDBusDaemon build when glib is built as a static lib

This makes sure not to ifdef _g_io_win32_get_module() out when glib is
built as a static lib, and also fixes it to work when DllMain isn't
available.

The implementation uses GetModuleHandleEx() which is only available on
Windows XP and later, so this commit effectively drops the Windows 2000
support in glib. Earlier commit 731b4699 already took care of defining
_WIN32_WINNT to support the Windows XP API.

https://bugzilla.gnome.org/show_bug.cgi?id=675516
gio/giomodule.c