1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-09 13:15:11 +00:00

build: find out windows platform using GetVersionEx()

This commit is contained in:
Yang Tse
2011-03-23 20:53:28 +01:00
parent 822fd0f877
commit bd066ab8ef
5 changed files with 78 additions and 7 deletions

View File

@ -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