diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-05-21 18:05:56 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-05-21 18:05:56 +0200 |
commit | 3ab85c69123ea82834cc780377c7512249537ac1 (patch) | |
tree | 771aa2559adc092f4ef03f19a741163086c1bc3e | |
parent | d0d576d61d65f7b42db1cc7331f1c7c9879e90e9 (diff) | |
download | wolfbones-3ab85c69123ea82834cc780377c7512249537ac1.tar.gz wolfbones-3ab85c69123ea82834cc780377c7512249537ac1.tar.bz2 |
fixed includes for networking on windows
-rw-r--r-- | include/wolf/network/network.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wolf/network/network.h b/include/wolf/network/network.h index 7710d3b..d55ac58 100644 --- a/include/wolf/network/network.h +++ b/include/wolf/network/network.h @@ -54,7 +54,12 @@ extern "C" { #include <sys/socket.h> /* for sockaddr_storage */ #include <netinet/in.h> /* for sockaddr_in */ #else +#if defined _WIN32 +#define WIN32_MEAN_AND_LEAN +#include <windows.h> +#else #error Check includes first! +#endif /* defined _WIN32 */ #endif /* defined FREEBSD */ #endif /* defined NETBSD */ #endif /* defined OPENBSD */ |