1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

socklen_t is always int on Windows

Define XML_SOCKLEN_T as `int` unconditionally in wsockcompat.h. Fixes
compiler warnings and removes some duplicated code.
This commit is contained in:
Nick Wellnhofer 2017-10-09 00:08:10 +02:00
parent 5b2324b6e0
commit 45b0ebdc8d
4 changed files with 2 additions and 10 deletions

View File

@ -27,10 +27,8 @@
#endif
#endif
#if !defined SOCKLEN_T
#define SOCKLEN_T int
#endif
#undef XML_SOCKLEN_T
#define XML_SOCKLEN_T int
#ifndef ECONNRESET
#define ECONNRESET WSAECONNRESET

View File

@ -83,8 +83,6 @@
#endif
#include <wsockcompat.h>
#include <winsock2.h>
#undef XML_SOCKLEN_T
#define XML_SOCKLEN_T unsigned int
#endif
/**

View File

@ -80,8 +80,6 @@
#endif
#include <wsockcompat.h>
#include <winsock2.h>
#undef XML_SOCKLEN_T
#define XML_SOCKLEN_T unsigned int
#endif
#include <libxml/globals.h>

View File

@ -31,8 +31,6 @@
#define _WINSOCKAPI_
#include <wsockcompat.h>
#include <winsock2.h>
#undef XML_SOCKLEN_T
#define XML_SOCKLEN_T unsigned int
#endif
#ifdef HAVE_SYS_TIMEB_H