Commit 1359abdd authored by Ian Craggs's avatar Ian Craggs

Fix Windows compile warnings

parent 7053c4b7
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
* Contributors: * Contributors:
* Ian Craggs, Allan Stockdill-Mander - initial implementation * Ian Craggs, Allan Stockdill-Mander - initial implementation
*******************************************************************************/ *******************************************************************************/
#include "MQTTClient.h"
#if !defined(SSLSOCKET_H) #if !defined(SSLSOCKET_H)
#define SSLSOCKET_H #define SSLSOCKET_H
......
...@@ -24,12 +24,14 @@ ...@@ -24,12 +24,14 @@
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#define MAXHOSTNAMELEN 256 #define MAXHOSTNAMELEN 256
#if !defined(SSLSOCKET_H)
#define EAGAIN WSAEWOULDBLOCK #define EAGAIN WSAEWOULDBLOCK
#define EINTR WSAEINTR #define EINTR WSAEINTR
#define EINPROGRESS WSAEINPROGRESS #define EINPROGRESS WSAEINPROGRESS
#define EWOULDBLOCK WSAEWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK
#define ENOTCONN WSAENOTCONN #define ENOTCONN WSAENOTCONN
#define ECONNRESET WSAECONNRESET #define ECONNRESET WSAECONNRESET
#endif
#define ioctl ioctlsocket #define ioctl ioctlsocket
#define socklen_t int #define socklen_t int
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment