From ff0010080bbab16ec7b12b7f71e958d1e4f6f94b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 13 May 2023 20:23:19 +0200 Subject: Windows: Use winsock2.h instead of sys/time.h when using MSVC --- include/plist/Date.h | 4 ++++ src/plist.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/plist/Date.h b/include/plist/Date.h index 3cfb7d1..5113cf3 100644 --- a/include/plist/Date.h +++ b/include/plist/Date.h @@ -24,7 +24,11 @@ #include #include +#ifdef _MSC_VER +#include +#else #include +#endif namespace PList { diff --git a/src/plist.h b/src/plist.h index 4351ce4..178fb7c 100644 --- a/src/plist.h +++ b/src/plist.h @@ -30,11 +30,13 @@ #include #include -#include #ifdef _MSC_VER #pragma warning(disable:4996) #pragma warning(disable:4244) +#include +#else +#include #endif struct plist_data_s -- cgit v1.1-32-gdbae