summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Xiaoyi Zhang <zhangxy988@gmail.com>2018-07-13 14:13:24 -0400
committerGravatar GitHub <noreply@github.com>2018-07-13 14:13:24 -0400
commita5030ca5125b9d557ecfeea8acc8b1a8e49f6d27 (patch)
treedf6195ac9c2f5ab7cf0d63d01d42e3e9e0d40bab
parent02687955b7ca8fc02ada9b14bc247deeb108d341 (diff)
parent37d45c0164671963051320598ee8421b87506283 (diff)
Merge pull request #144 from rongjiecomputer/winsock2
Only MSVC does not have sys/time.h
-rw-r--r--absl/time/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/time/time.h b/absl/time/time.h
index ceec2de7..880fc783 100644
--- a/absl/time/time.h
+++ b/absl/time/time.h
@@ -50,7 +50,7 @@
#ifndef ABSL_TIME_TIME_H_
#define ABSL_TIME_TIME_H_
-#if !defined(_WIN32)
+#if !defined(_MSC_VER)
#include <sys/time.h>
#else
#include <winsock2.h>