Remove unneeded #include <stdint.h>
authorPatrick Gansterer <paroga@paroga.com>
Fri, 26 Aug 2016 08:49:29 +0000 (10:49 +0200)
committerAndy Green <andy@warmcat.com>
Fri, 26 Aug 2016 11:41:31 +0000 (19:41 +0800)
    This fixes the build for Visual Studio 2008.

lib/libwebsockets.h
test-server/test-ping.c

index 50bc8d4cd1841cfd43e2f85eca7804914b9ef66d..ef9cd0f11f199592280f4cc1e422568eba2ab364 100644 (file)
@@ -114,7 +114,6 @@ struct sockaddr_in;
 #include <stddef.h>
 #include <basetsd.h>
 #ifndef _WIN32_WCE
-#include <stdint.h>
 #include <fcntl.h>
 #else
 #define _O_RDONLY      0x0000
index 640bc9d072a9d4f9bc4e313c981203bd39b12301..3d073d81082cd35dbdca219d28bf272c1367a358 100644 (file)
@@ -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;
                }