From bd2072f8d025e7a37d527b23b84698460c5798bf Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 27 Sep 2025 19:07:38 +0200 Subject: [PATCH] globals: Don't export DllMain on Windows This shouldn't be done and lld 21 warns about it: https://github.com/msys2/MINGW-packages/issues/17820 https://github.com/msys2/MINGW-packages/issues/25716 Regressed with f05af837. --- globals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/globals.c b/globals.c index 38db2954e..de131552f 100644 --- a/globals.c +++ b/globals.c @@ -782,9 +782,9 @@ xmlDllMain(ATTRIBUTE_UNUSED void *hinstDLL, unsigned long fdwReason, /* declare to avoid "no previous prototype for 'DllMain'" warning */ /* Note that we do NOT want to include this function declaration in a public header because it's meant to be called by Windows itself, - not a program that uses this library. This also has to be exported. */ + not a program that uses this library. */ -XMLPUBFUN BOOL WINAPI +BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);