[libxml2] Don't include winsock2.h in xmllint.c
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Don't include winsock2.h in xmllint.c
- Date: Mon, 9 Oct 2017 15:08:40 +0000 (UTC)
commit bee8f1e47b0072e8ea216ed08ed819df96812a25
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Mon Oct 9 00:19:06 2017 +0200
Don't include winsock2.h in xmllint.c
I'm not sure why xmllint.c did include winsock2.h at all. Stop
including the header as both MinGW and MSVC builds don't seem to
require it.
xmllint.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index 7ab1fb8..a691aa6 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -12,14 +12,6 @@
#include <stdarg.h>
#include <assert.h>
-#if defined (_WIN32) && !defined(__CYGWIN__)
-#if defined (_MSC_VER) || defined(__BORLANDC__)
-#include <winsock2.h>
-#pragma comment(lib, "ws2_32.lib")
-#define gettimeofday(p1,p2)
-#endif /* _MSC_VER */
-#endif /* _WIN32 */
-
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -27,12 +19,6 @@
#include <time.h>
#endif
-#ifdef __MINGW32__
-#define _WINSOCKAPI_
-#include <wsockcompat.h>
-#include <winsock2.h>
-#endif
-
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]