aboutsummaryrefslogtreecommitdiff
path: root/ares/setup.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/setup.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/setup.h')
-rw-r--r--ares/setup.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/ares/setup.h b/ares/setup.h
index 29e5d0f1f..70b8ecb0a 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -16,13 +16,11 @@
* without express or implied warranty.
*/
-#if !defined(WIN32) && defined(__WIN32__)
-/* Borland fix */
-#define WIN32
-#endif
+/*
+ * Define WIN32 when build target is Win32 API
+ */
-#if !defined(WIN32) && defined(_WIN32)
-/* VS2005 on x64 fix */
+#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
#define WIN32
#endif