From 89fce0c2a1887b139b8a1bfbeb30c3d243c56f52 Mon Sep 17 00:00:00 2001 From: Hesham Essam Date: Fri, 3 Jun 2022 13:29:28 +0200 Subject: Disable relocation when built as a static libary on Windows --- gdk-pixbuf/gdk-pixbuf-io.c | 5 ++--- gdk-pixbuf/queryloaders.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'gdk-pixbuf') diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 182781178..e207d8143 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -182,6 +182,8 @@ get_file_formats (void) return file_formats; } +#ifdef GDK_PIXBUF_RELOCATABLE // implies that gdk-pixbuf is built as a dll on windows + #ifdef G_OS_WIN32 /* DllMain function needed to tuck away the gdk-pixbuf DLL handle */ @@ -203,9 +205,6 @@ DllMain (HINSTANCE hinstDLL, } #endif - -#ifdef GDK_PIXBUF_RELOCATABLE - gchar * gdk_pixbuf_get_toplevel (void) { diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index ddcae7b6f..1d39b442e 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -280,7 +280,7 @@ query_module (GString *contents, const char *dir, const char *file) g_free (path); } -#ifdef G_OS_WIN32 +#if defined(G_OS_WIN32) && defined(GDK_PIXBUF_RELOCATABLE) static char * get_libdir (void) -- cgit v1.2.1