[gtk/gtk-3-24: 1/2] Fix dllMain win32
- From: Luca Bacci <lbacci src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] Fix dllMain win32
- Date: Tue, 1 Mar 2022 06:03:38 +0000 (UTC)
commit d13e05be93ddfef427d269505731c4eddbc8dd08
Author: Melroy van den Berg <melroy melroy org>
Date: Tue Mar 1 06:03:36 2022 +0000
Fix dllMain win32
gdk/win32/gdkmain-win32.c | 2 ++
gtk/gtkwin32.c | 2 ++
2 files changed, 4 insertions(+)
---
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c
index 23f76b4e25..043341a255 100644
--- a/gdk/win32/gdkmain-win32.c
+++ b/gdk/win32/gdkmain-win32.c
@@ -49,6 +49,7 @@
static gboolean gdk_synchronize = FALSE;
+#ifdef DLL_EXPORT
BOOL WINAPI
DllMain (HINSTANCE hinstDLL,
DWORD dwReason,
@@ -58,6 +59,7 @@ DllMain (HINSTANCE hinstDLL,
return TRUE;
}
+#endif
void
_gdk_win32_windowing_init (void)
diff --git a/gtk/gtkwin32.c b/gtk/gtkwin32.c
index bf707ad743..a086ad61ac 100644
--- a/gtk/gtkwin32.c
+++ b/gtk/gtkwin32.c
@@ -41,6 +41,7 @@
static HMODULE gtk_dll;
+#ifdef DLL_EXPORT
BOOL WINAPI
DllMain (HINSTANCE hinstDLL,
DWORD fdwReason,
@@ -55,6 +56,7 @@ DllMain (HINSTANCE hinstDLL,
return TRUE;
}
+#endif
static BOOL CALLBACK
find_first_manifest (HMODULE module_handle,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]