diff options
Diffstat (limited to 'ares/ares_private.h')
-rw-r--r-- | ares/ares_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ares/ares_private.h b/ares/ares_private.h index 26f55db5a..d5ffbb382 100644 --- a/ares/ares_private.h +++ b/ares/ares_private.h @@ -18,6 +18,14 @@ * without express or implied warranty. */ +/* + * Define WIN32 when build target is Win32 API + */ + +#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) +#define WIN32 +#endif + #include <stdio.h> #include <sys/types.h> |