Move inclusion of system headers in misc.c to top, which fixes building on

recent Cygwin (including windows.h after the macros defined in modval.h
causes the build to fail due to our 'load' macro).  Reported by VICODAN.

Also define WIN32_LEAN_AND_MEAN in misc.c, which should speed up Cygwin
build times a little.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@219 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-01-02 22:40:58 +00:00
parent 754f1a19eb
commit 2027f75969
4 changed files with 30 additions and 21 deletions

View File

@@ -169,6 +169,7 @@ if test x"$bx_cv_lib_resolver" != x"not found"; then
OLDLIBS="$LIBS"
LIBS="-liphlpapi $LIBS"
AC_LINK_IFELSE([[
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <iphlpapi.h>