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