diff options
author | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
commit | 498230f3f22f6a75397bb916de5d9ff17cbf3c9c (patch) | |
tree | b438db106ead32b66d9b74d34a97fa40e61e69dd | |
parent | 26e6dfc338e2f972d08e9b0b059757c60a896a6b (diff) | |
download | rabbitmq-c-github-ask-498230f3f22f6a75397bb916de5d9ff17cbf3c9c.tar.gz |
Prevent windows.h name collisions with winsock2.h
By default, windows.h pulls in the winsock1 definitions, which then
collide with those from winsock2.h. Use an MSDN-suggested workaround.
-rw-r--r-- | librabbitmq/windows/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/librabbitmq/windows/socket.c b/librabbitmq/windows/socket.c index 9c026bd..3cc57ba 100644 --- a/librabbitmq/windows/socket.c +++ b/librabbitmq/windows/socket.c @@ -48,6 +48,9 @@ * ***** END LICENSE BLOCK ***** */ +/* See http://msdn.microsoft.com/en-us/library/ms737629%28VS.85%29.aspx */ +#define WIN32_LEAN_AND_MEAN + #include <windows.h> #include <stdint.h> |