summaryrefslogtreecommitdiff
path: root/include/wsockcompat.h
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-06-06 11:29:29 +0800
committerDaniel Veillard <veillard@redhat.com>2012-06-06 11:29:29 +0800
commit8fc913fcc9d2c3fd5c76694cb4e631ca1242de37 (patch)
tree50a8cabc8fda66b07b574f2dac2c31ef7b69575d /include/wsockcompat.h
parent2e1eaca637ae1f07c5c71829e94012e27a86d88c (diff)
downloadlibxml2-8fc913fcc9d2c3fd5c76694cb4e631ca1242de37.tar.gz
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
Diffstat (limited to 'include/wsockcompat.h')
-rw-r--r--include/wsockcompat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wsockcompat.h b/include/wsockcompat.h
index c762a646..e6a1a993 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