diff options
author | Gilad Arnold <garnold@google.com> | 2015-07-17 00:23:30 -0700 |
---|---|---|
committer | Gilad Arnold <garnold@google.com> | 2015-07-17 16:18:06 -0700 |
commit | 968bf19396ad404e89420f5d67900fce13f4186c (patch) | |
tree | df6210e63ac2b96d6e638cb288a07776d1373cf5 /windows_port.c | |
parent | 9ade30bfaf6d122f95d862c10092b1f817b8f119 (diff) | |
download | c-ares-968bf19396ad404e89420f5d67900fce13f4186c.tar.gz |
Initial c-ares-1.7.5 distribution.
Includes NOTICE and MODULE_LICENSE_MIT files. Omitted:
- m4/
- vc/
- *.pdf
- *.[13]
- Makefile.{Watcom,dj,m32,msvc,netware}
Bug: 22545809
Diffstat (limited to 'windows_port.c')
-rw-r--r-- | windows_port.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/windows_port.c b/windows_port.c new file mode 100644 index 0000000..03acd1c --- /dev/null +++ b/windows_port.c @@ -0,0 +1,22 @@ +#include "ares_setup.h" + + +/* only do the following on windows + */ +#if (defined(WIN32) || defined(WATT32)) && !defined(MSDOS) + +#ifdef __WATCOMC__ +/* + * Watcom needs a DllMain() in order to initialise the clib startup code. + */ +BOOL +WINAPI DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved) +{ + (void) hnd; + (void) reason; + (void) reserved; + return (TRUE); +} +#endif + +#endif /* WIN32 builds only */ |