summaryrefslogtreecommitdiff
path: root/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
commit7cd35ce69858bb06a446ef7620ea52807d67d306 (patch)
tree859f6581d29eaaf956fc2a795387d9531743888c /ares.h
parentaa74d21c4e5da1c8650115ec3c062d31f37ea370 (diff)
downloadc-ares-7cd35ce69858bb06a446ef7620ea52807d67d306.tar.gz
c-ares-7cd35ce69858bb06a446ef7620ea52807d67d306.tar.bz2
c-ares-7cd35ce69858bb06a446ef7620ea52807d67d306.zip
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.h')
-rw-r--r--ares.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 4437e3d..af7df70 100644
--- a/ares.h
+++ b/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__))