]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added DllMain() function for Watcom.
authorGisle Vanem <gvanem@broadpark.no>
Sun, 4 Feb 2007 12:50:53 +0000 (12:50 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sun, 4 Feb 2007 12:50:53 +0000 (12:50 +0000)
ares/windows_port.c

index 2a326da0189e0411da22e87678cde2fdb200a1a5..6086024a062af184e473ac2cda6c313800fe0ec9 100644 (file)
 #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)