diff --git a/net.c b/net.c
index b514bab..07edb67 100644
--- a/net.c
+++ b/net.c
@@ -277,7 +277,7 @@ static int redisContextTimeoutMsec(redisContext *c, long *result)
 }
 
 static long redisPollMillis(void) {
-#ifndef _MSC_VER
+#ifndef _WIN32
     struct timespec now;
     clock_gettime(CLOCK_MONOTONIC, &now);
     return (now.tv_sec * 1000) + now.tv_nsec / 1000000;
