Define WIN32_LEAN_AND_MEAN for Windows

This commit is contained in:
Markus Armbruster 2009-04-12 19:07:30 +02:00
parent c02468fd69
commit c1dbf14f8f
2 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,8 @@ AC_DEFUN([MY_WINDOWS_API],
AC_MSG_RESULT([$Windows_API])
if test $Windows_API = yes; then
AC_DEFINE([WINDOWS], 1, [Define if compiling for Windows API])
AC_DEFINE([WIN32_LEAN_AND_MEAN], 1,
[Define to make Windows includes pull in less junk])
LIBS_SOCKETS="-lws2_32"
else
LIBS_SOCKETS=

View file

@ -49,8 +49,9 @@
#include <fcntl.h>
#include <io.h>
#include <share.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
/*
* Need to include winsock2.h before ws2tcpip.h.
* Use sys/socket.h to ensure the #undef NS_ALL