package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
1.1 KiB

diff --git a/easywsclient.cpp b/easywsclient.cpp
index 0c98098..750d513 100644
--- a/easywsclient.cpp
+++ b/easywsclient.cpp
@@ -26,17 +26,6 @@
#ifndef snprintf
#define snprintf _snprintf_s
#endif
- #if _MSC_VER >=1600
- // vs2010 or later
- #include <stdint.h>
- #else
- typedef __int8 int8_t;
- typedef unsigned __int8 uint8_t;
- typedef __int32 int32_t;
- typedef unsigned __int32 uint32_t;
- typedef __int64 int64_t;
- typedef unsigned __int64 uint64_t;
- #endif
#define socketerrno WSAGetLastError()
#define SOCKET_EAGAIN_EINPROGRESS WSAEINPROGRESS
#define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
@@ -52,7 +41,6 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
- #include <stdint.h>
#ifndef _SOCKET_T_DEFINED
typedef int socket_t;
#define _SOCKET_T_DEFINED
diff --git a/easywsclient.hpp b/easywsclient.hpp
index 08c4a7b..df60500 100644
--- a/easywsclient.hpp
+++ b/easywsclient.hpp
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include <cstdint>
namespace easywsclient {