aboutsummaryrefslogtreecommitdiff
path: root/ares/ares.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-11-08 18:13:54 +0000
committerYang Tse <yangsita@gmail.com>2007-11-08 18:13:54 +0000
commit32195c673de46a48457709bd4efa5c63525e1d68 (patch)
tree127f45b0db924c1c56b613c321f3428a880c1254 /ares/ares.h
parentb99a61c5b046d1a9b2c5f2e071233bb9c0458210 (diff)
Define WIN32 when build target is Win32 API.
This also defines it for WinCE even though it is a subset of WIN32.
Diffstat (limited to 'ares/ares.h')
-rw-r--r--ares/ares.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ares/ares.h b/ares/ares.h
index 4437e3d3a..af7df703d 100644
--- a/ares/ares.h
+++ b/ares/ares.h
@@ -18,6 +18,14 @@
#ifndef ARES__H
#define ARES__H
+/*
+ * Define WIN32 when build target is Win32 API
+ */
+
+#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
+#define WIN32
+#endif
+
#include <sys/types.h>
#if defined(_AIX) || (defined(NETWARE) && defined(__NOVELL_LIBC__))