From: Gisle Vanem Date: Sun, 4 Feb 2007 12:50:53 +0000 (+0000) Subject: Added DllMain() function for Watcom. X-Git-Tag: curl-7_16_2~368 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe7fa8e794b4a8e3f04580235d57bd485ecd1e2d;p=thirdparty%2Fcurl.git Added DllMain() function for Watcom. --- diff --git a/ares/windows_port.c b/ares/windows_port.c index 2a326da018..6086024a06 100644 --- a/ares/windows_port.c +++ b/ares/windows_port.c @@ -20,6 +20,19 @@ #include "ares.h" #include "ares_private.h" +#ifdef __WATCOMC__ +/* Watcom needs a DlMain() in order to initialise the clib startup code. + */ +BOOL +DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved) +{ + (void) hnd; + (void) reason; + (void) reserved; + return (TRUE); +} +#endif + #ifndef __MINGW32__ int ares_strncasecmp(const char *a, const char *b, int n)