Define WIN32_LEAN_AND_MEAN for Windows
This commit is contained in:
parent
c02468fd69
commit
c1dbf14f8f
2 changed files with 4 additions and 1 deletions
|
@ -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=
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue