From b7473a354d4c1f8a9cf0c755a99773495ee8b869 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 26 Aug 2016 10:49:29 +0200 Subject: [PATCH] Remove unneeded #include This fixes the build for Visual Studio 2008. --- lib/libwebsockets.h | 1 - test-server/test-ping.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 50bc8d4c..ef9cd0f1 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -114,7 +114,6 @@ struct sockaddr_in; #include #include #ifndef _WIN32_WCE -#include #include #else #define _O_RDONLY 0x0000 diff --git a/test-server/test-ping.c b/test-server/test-ping.c index 640bc9d0..3d073d81 100644 --- a/test-server/test-ping.c +++ b/test-server/test-ping.c @@ -78,7 +78,7 @@ struct ping { }; struct per_session_data__ping { - uint64_t ping_index; + unsigned long long ping_index; struct ping ringbuffer[PING_RINGBUFFER_SIZE]; int ringbuffer_head; @@ -110,7 +110,7 @@ callback_lws_mirror(struct lws *wsi, enum lws_callback_reasons reason, unsigned char *p; unsigned long iv; int match = 0; - uint64_t l; + unsigned long long l; int shift; int n; @@ -158,7 +158,7 @@ callback_lws_mirror(struct lws *wsi, enum lws_callback_reasons reason, l = 0; while (shift >= 0) { - l |= ((uint64_t)*p++) << shift; + l |= ((unsigned long long)*p++) << shift; shift -= 8; }