diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-09-23 18:40:44 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-09-23 18:40:44 +0800 |
commit | 6fa1eebbf372c668ba8920cd266192890ea1b113 (patch) | |
tree | cba94dae48c6532215361eb7f72297640274c20f | |
parent | 3697550f09011b0312bc8df25f099bba07d84159 (diff) | |
download | libsoup-6fa1eebbf372c668ba8920cd266192890ea1b113.tar.gz |
soup-session.c: Fix Build on MinGW
MinGW requires that a prototype be declared for DllMain() before we
can use it, so define it here to fix the build, as the previous patch to
add this did not check for this part. Also fix a build warning on the
DllMain() as a return BOOL was expected.
This patch was checked with Ignacio Quinteiro (Nacho) via e-mail
communication.
-rw-r--r-- | libsoup/soup-session.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c index ca8d80c8..aee6f371 100644 --- a/libsoup/soup-session.c +++ b/libsoup/soup-session.c @@ -81,6 +81,10 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> +BOOL WINAPI DllMain (HINSTANCE hinstDLL, + DWORD fdwReason, + LPVOID lpvReserved); + HMODULE soup_dll; BOOL WINAPI @@ -99,6 +103,8 @@ DllMain (HINSTANCE hinstDLL, /* do nothing */ ; } + + return TRUE; } #endif |