[libxml2] Fix compilation on older Visual Studio
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix compilation on older Visual Studio
- Date: Wed, 6 Jun 2012 03:32:30 +0000 (UTC)
commit 8fc913fcc9d2c3fd5c76694cb4e631ca1242de37
Author: Daniel Veillard <veillard redhat com>
Date: Wed Jun 6 11:29:29 2012 +0800
Fix compilation on older Visual Studio
For https://bugzilla.gnome.org/show_bug.cgi?id=666491
Reported by Matt Budd <matt budd gmail com>, the added support
for VS 2010 broke older version 2005 and 2008 because it assumed
some of the defines where present in all versions, fix that
to check the version of VS
include/wsockcompat.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/include/wsockcompat.h b/include/wsockcompat.h
index c762a64..e6a1a99 100644
--- a/include/wsockcompat.h
+++ b/include/wsockcompat.h
@@ -41,7 +41,7 @@
#define EWOULDBLOCK WSAEWOULDBLOCK
#define ESHUTDOWN WSAESHUTDOWN
-#ifndef _MSC_VER
+#if (!defined(_MSC_VER) || (_MSC_VER < 1600))
#define EINPROGRESS WSAEINPROGRESS
#define EALREADY WSAEALREADY
#define ENOTSOCK WSAENOTSOCK
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]