add_cstdint.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. diff --git a/easywsclient.cpp b/easywsclient.cpp
  2. index 0c98098..750d513 100644
  3. --- a/easywsclient.cpp
  4. +++ b/easywsclient.cpp
  5. @@ -26,17 +26,6 @@
  6. #ifndef snprintf
  7. #define snprintf _snprintf_s
  8. #endif
  9. - #if _MSC_VER >=1600
  10. - // vs2010 or later
  11. - #include <stdint.h>
  12. - #else
  13. - typedef __int8 int8_t;
  14. - typedef unsigned __int8 uint8_t;
  15. - typedef __int32 int32_t;
  16. - typedef unsigned __int32 uint32_t;
  17. - typedef __int64 int64_t;
  18. - typedef unsigned __int64 uint64_t;
  19. - #endif
  20. #define socketerrno WSAGetLastError()
  21. #define SOCKET_EAGAIN_EINPROGRESS WSAEINPROGRESS
  22. #define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
  23. @@ -52,7 +41,6 @@
  24. #include <sys/time.h>
  25. #include <sys/types.h>
  26. #include <unistd.h>
  27. - #include <stdint.h>
  28. #ifndef _SOCKET_T_DEFINED
  29. typedef int socket_t;
  30. #define _SOCKET_T_DEFINED
  31. diff --git a/easywsclient.hpp b/easywsclient.hpp
  32. index 08c4a7b..df60500 100644
  33. --- a/easywsclient.hpp
  34. +++ b/easywsclient.hpp
  35. @@ -10,6 +10,7 @@
  36. #include <string>
  37. #include <vector>
  38. +#include <cstdint>
  39. namespace easywsclient {