view src/glib-2-DllMain.patch @ 2399:d35b16275627

glib: Add DllMain alias gio_DllMain/glib_DllMain
author Matthias Gehre <M.Gehre@gmx.de>
date Sat, 14 Apr 2012 22:06:52 +0200
parents
children 7e5aaa010a02
line wrap: on
line source

diff -uNr glib-2.28.8-orig/gio/giomodule.c glib/gio/giomodule.c
--- glib-2.28.8-orig/gio/giomodule.c	2011-01-05 22:44:06.000000000 +0100
+++ glib/gio/giomodule.c	2011-11-23 21:04:43.867004895 +0100
@@ -489,10 +489,8 @@
 
 static HMODULE gio_dll = NULL;
 
-#ifdef DLL_EXPORT
-
 BOOL WINAPI
-DllMain (HINSTANCE hinstDLL,
+gio_DllMain (HINSTANCE hinstDLL,
 	 DWORD     fdwReason,
 	 LPVOID    lpvReserved)
 {
@@ -502,8 +500,6 @@
   return TRUE;
 }
 
-#endif
-
 #undef GIO_MODULE_DIR
 
 /* GIO_MODULE_DIR is used only in code called just once,
diff -uNr glib-2.28.8-orig/glib/gutils.c glib/glib/gutils.c
--- glib-2.28.8-orig/glib/gutils.c	2011-06-06 01:18:49.000000000 +0200
+++ glib/glib/gutils.c	2011-11-23 21:05:07.822988144 +0100
@@ -144,10 +144,8 @@
 
 static HMODULE glib_dll = NULL;
 
-#ifdef DLL_EXPORT
-
 BOOL WINAPI
-DllMain (HINSTANCE hinstDLL,
+glib_DllMain (HINSTANCE hinstDLL,
 	 DWORD     fdwReason,
 	 LPVOID    lpvReserved)
 {
@@ -157,8 +155,6 @@
   return TRUE;
 }
 
-#endif
-
 gchar *
 _glib_get_dll_directory (void)
 {
@@ -166,10 +162,8 @@
   gchar *p;
   wchar_t wc_fn[MAX_PATH];
 
-#ifdef DLL_EXPORT
   if (glib_dll == NULL)
     return NULL;
-#endif
 
   /* This code is different from that in
    * g_win32_get_package_installation_directory_of_module() in that