Commit 35bb6ebf authored by Filippo Della Betta's avatar Filippo Della Betta Committed by Youness Alaoui

Error definitions moved to pseudotcp.h on WIN32 platform

parent 2c917538
...@@ -49,10 +49,7 @@ ...@@ -49,10 +49,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#ifdef G_OS_WIN32 #ifndef G_OS_WIN32
# include <winsock2.h>
# define EWOULDBLOCK WSAEWOULDBLOCK
#else
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
......
...@@ -68,13 +68,8 @@ ...@@ -68,13 +68,8 @@
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>
#ifdef G_OS_WIN32
# include <winsock2.h> #ifndef G_OS_WIN32
# define ECONNABORTED WSAECONNABORTED
# define ENOTCONN WSAENOTCONN
# define EWOULDBLOCK WSAEWOULDBLOCK
# define ECONNRESET WSAECONNRESET
#else
# include <arpa/inet.h> # include <arpa/inet.h>
#endif #endif
......
...@@ -58,6 +58,14 @@ ...@@ -58,6 +58,14 @@
#include <glib-object.h> #include <glib-object.h>
#ifdef G_OS_WIN32
# include <winsock2.h>
# define ECONNABORTED WSAECONNABORTED
# define ENOTCONN WSAENOTCONN
# define EWOULDBLOCK WSAEWOULDBLOCK
# define ECONNRESET WSAECONNRESET
#endif
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
......
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