summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-05-13 16:16:34 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-05-13 16:16:34 +0000
commitd451ffa80023b406fed8a731840d7d329fc7a434 (patch)
tree258e684ccaa271989095d3bda455f6b9e266929c
parentf0a3b189f4d1f7f44e27a591cde85c33a3bd3b34 (diff)
downloadevolution-data-server-d451ffa80023b406fed8a731840d7d329fc7a434.tar.gz
Define WIN32_LEAN_AND_MEAN around including <winsock2.h> to reduce the
2008-05-13 Tor Lillqvist <tml@novell.com> * camel-net-utils.h [Win32]: Define WIN32_LEAN_AND_MEAN around including <winsock2.h> to reduce the namespace pollution, especially DATADIR clashes. svn path=/trunk/; revision=8789
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-net-utils.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 51debebdb..d37ef4c7d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-13 Tor Lillqvist <tml@novell.com>
+
+ * camel-net-utils.h [Win32]: Define WIN32_LEAN_AND_MEAN around
+ including <winsock2.h> to reduce the namespace pollution,
+ especially DATADIR clashes.
+
2008-05-07 Jeffrey Stedfast <fejj@novell.com>
* camel-uid-cache.c (camel_uid_cache_save): Check cache->fd after
diff --git a/camel/camel-net-utils.h b/camel/camel-net-utils.h
index 6b763d5ed..52032c336 100644
--- a/camel/camel-net-utils.h
+++ b/camel/camel-net-utils.h
@@ -29,7 +29,9 @@
#include <sys/socket.h>
#include <netdb.h>
#else
+#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
+#undef WIN32_LEAN_AND_MEAN
#include <ws2tcpip.h>
#endif