summaryrefslogtreecommitdiff
path: root/ares_private.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-03-23 20:53:28 +0100
committerYang Tse <yangsita@gmail.com>2011-03-23 20:53:28 +0100
commitbd066ab8efa0d43ef002954f4587a195a15ac460 (patch)
tree450f425d38f2c2d873e5cd8f1f829a957d1d4a4e /ares_private.h
parent822fd0f8771d3792da0a08276ab0400b2a68f07e (diff)
downloadc-ares-bd066ab8efa0d43ef002954f4587a195a15ac460.tar.gz
c-ares-bd066ab8efa0d43ef002954f4587a195a15ac460.tar.bz2
c-ares-bd066ab8efa0d43ef002954f4587a195a15ac460.zip
build: find out windows platform using GetVersionEx()
Diffstat (limited to 'ares_private.h')
-rw-r--r--ares_private.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/ares_private.h b/ares_private.h
index 01a79b6..78f3a1c 100644
--- a/ares_private.h
+++ b/ares_private.h
@@ -52,7 +52,6 @@
#if defined(WIN32) && !defined(WATT32)
-#define IS_NT() ((int)GetVersion() > 0)
#define WIN_NS_9X "System\\CurrentControlSet\\Services\\VxD\\MSTCP"
#define WIN_NS_NT_KEY "System\\CurrentControlSet\\Services\\Tcpip\\Parameters"
#define NAMESERVER "NameServer"
@@ -345,6 +344,20 @@ long ares__tvdiff(struct timeval t1, struct timeval t2);
(c)->sock_state_cb((c)->sock_state_cb_data, (s), (r), (w)); \
} while (0)
+#if (defined(WIN32) || defined(WATT32)) && !defined(MSDOS)
+
+typedef enum {
+ WIN_UNKNOWN,
+ WIN_3X,
+ WIN_9X,
+ WIN_NT,
+ WIN_CE
+} win_platform;
+
+win_platform getplatform(void);
+
+#endif
+
#ifdef CURLDEBUG
/* This is low-level hard-hacking memory leak tracking and similar. Using the
libcurl lowlevel code from within library is ugly and only works when