mirror of
https://github.com/GNOME/libxml2.git
synced 2025-10-15 21:27:33 +08:00
Add declaration for DllMain
Fixes a compiler warning.
This commit is contained in:

committed by
Nick Wellnhofer

parent
882a165a3f
commit
f05af837bb
10
threads.c
10
threads.c
@@ -985,6 +985,16 @@ int XMLCALL
|
||||
xmlDllMain(ATTRIBUTE_UNUSED void *hinstDLL, unsigned long fdwReason,
|
||||
ATTRIBUTE_UNUSED void *lpvReserved)
|
||||
#else
|
||||
/* 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. */
|
||||
|
||||
XMLPUBFUN BOOL WINAPI
|
||||
DllMain (HINSTANCE hinstDLL,
|
||||
DWORD fdwReason,
|
||||
LPVOID lpvReserved);
|
||||
|
||||
BOOL WINAPI
|
||||
DllMain(ATTRIBUTE_UNUSED HINSTANCE hinstDLL, DWORD fdwReason,
|
||||
ATTRIBUTE_UNUSED LPVOID lpvReserved)
|
||||
|
Reference in New Issue
Block a user