view src/libgsf-2-fixes.patch @ 1192:92877f4655f9

remove stray DllMain from packages libgsf and gdk-pixbuf These caused a problem linking librsvg.
author Mark Brand <mabrand@mabrand.nl>
date Fri, 24 Sep 2010 23:54:15 +0200
parents
children ffb6a86b8f9a
line wrap: on
line source

This file is part of mingw-cross-env.
See doc/index.html for further information.

Contains ad hoc patches for cross building.
commit 908f4325d4977e67dc1d1840ce3e67bb9492de71
Author: Mark Brand <mabrand@mabrand.nl>
Date:   Fri Sep 24 23:34:26 2010 +0200

    s,DllMain,static _disabled_DllMain,

diff --git a/gsf/gsf-utils.c b/gsf/gsf-utils.c
index 4e54b09..b8261e5 100644
--- a/gsf/gsf-utils.c
+++ b/gsf/gsf-utils.c
@@ -109,9 +109,9 @@ static GTypeModule *static_type_module = NULL;
 #include <windows.h>
 static HMODULE gsf_dll_hmodule;
 BOOL WINAPI
-DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
+static _disabled_DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
 BOOL WINAPI
-DllMain (HINSTANCE hinstDLL, DWORD fdwReason, G_GNUC_UNUSED LPVOID lpvReserved)
+static _disabled_DllMain (HINSTANCE hinstDLL, DWORD fdwReason, G_GNUC_UNUSED LPVOID lpvReserved)
 {
 	if (fdwReason == DLL_PROCESS_ATTACH) gsf_dll_hmodule = hinstDLL;
 	return TRUE;