/* library-private global and unique instance vars */
-#ifdef WIN32
+#ifdef USE_WINSOCK
fpGetNetworkParams_t fpGetNetworkParams = ZERO_NULL;
fpSystemFunction036_t fpSystemFunction036 = ZERO_NULL;
#endif
static unsigned int ares_initialized;
static int ares_init_flags;
-#ifdef WIN32
+#ifdef USE_WINSOCK
static HMODULE hnd_iphlpapi;
static HMODULE hnd_advapi32;
#endif
static int ares_win32_init(void)
{
-#ifdef WIN32
+#ifdef USE_WINSOCK
hnd_iphlpapi = 0;
hnd_iphlpapi = LoadLibrary("iphlpapi.dll");
static void ares_win32_cleanup(void)
{
-#ifdef WIN32
+#ifdef USE_WINSOCK
if (hnd_advapi32)
FreeLibrary(hnd_advapi32);
if (hnd_iphlpapi)
int ares_library_initialized(void)
{
-#ifdef WIN32
+#ifdef USE_WINSOCK
if (!ares_initialized)
return ARES_ENOTINITIALIZED;
#endif
#include "ares_setup.h"
-#ifdef WIN32
+#ifdef USE_WINSOCK
#include <iphlpapi.h>
extern fpGetNetworkParams_t fpGetNetworkParams;
extern fpSystemFunction036_t fpSystemFunction036;
-#endif /* WIN32 */
+#endif /* USE_WINSOCK */
#endif /* HEADER_CARES_LIBRARY_INIT_H */