mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-05 05:47:00 +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:
parent
5b2324b6e0
commit
45b0ebdc8d
@ -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
|
||||
|
@ -83,8 +83,6 @@
|
||||
#endif
|
||||
#include <wsockcompat.h>
|
||||
#include <winsock2.h>
|
||||
#undef XML_SOCKLEN_T
|
||||
#define XML_SOCKLEN_T unsigned int
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user