From 48696e7e5e0c4fedf15dac0ae974b7fa5526febf Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Fri, 7 Aug 2020 10:26:38 -0700 Subject: Don't use non-installed win32.h helper in examples (#863) See: #862 --- examples/example-push.c | 1 - examples/example-ssl.c | 5 ++++- examples/example.c | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/example-push.c b/examples/example-push.c index 2d4ab4d..6bc1205 100644 --- a/examples/example-push.c +++ b/examples/example-push.c @@ -31,7 +31,6 @@ #include #include #include -#include #define KEY_COUNT 5 diff --git a/examples/example-ssl.c b/examples/example-ssl.c index c754177..b8ca442 100644 --- a/examples/example-ssl.c +++ b/examples/example-ssl.c @@ -4,7 +4,10 @@ #include #include -#include + +#ifdef _MSC_VER +#include /* For struct timeval */ +#endif int main(int argc, char **argv) { unsigned int j; diff --git a/examples/example.c b/examples/example.c index 15dacbd..f1b8b4a 100644 --- a/examples/example.c +++ b/examples/example.c @@ -2,7 +2,10 @@ #include #include #include -#include + +#ifdef _MSC_VER +#include /* For struct timeval */ +#endif int main(int argc, char **argv) { unsigned int j, isunix = 0; -- cgit v1.2.3