Added DllMain() function for Watcom.

pull/1/head
Gisle Vanem 18 years ago
parent 7fe31e4d00
commit b6c4466641
  1. 13
      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)

Loading…
Cancel
Save