2019-05-29 15:53:00 +08:00
|
|
|
diff --git a/itpp/base/timing.cpp b/itpp/base/timing.cpp
|
2019-08-02 08:54:45 +08:00
|
|
|
index 58178e4..6b173d0 100644
|
2019-05-29 15:53:00 +08:00
|
|
|
--- a/itpp/base/timing.cpp
|
|
|
|
+++ b/itpp/base/timing.cpp
|
2019-08-02 08:54:45 +08:00
|
|
|
@@ -52,6 +52,10 @@
|
2019-05-29 15:53:00 +08:00
|
|
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
|
|
|
#include <windows.h>
|
|
|
|
|
2019-08-02 08:54:45 +08:00
|
|
|
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
|
|
|
|
+#include <Winsock2.h>
|
|
|
|
+#endif
|
|
|
|
+
|
2019-05-29 15:53:00 +08:00
|
|
|
int gettimeofday(struct timeval* p, void*)
|
|
|
|
{
|
2019-08-02 08:54:45 +08:00
|
|
|
union {
|