win32: define WIN32_LEAN_AND_MEAN

This makes windows.h include less headers.
Otherwise boolean is typedef'ed and that clashes with libjson.
This commit is contained in:
Maarten Bosmans 2011-06-07 23:46:08 +02:00 committed by Arun Raghavan
parent 6fd2ef48dd
commit fc0eebf2c4
2 changed files with 4 additions and 0 deletions

View file

@ -91,6 +91,9 @@ case $host in
*-*-darwin* )
AC_DEFINE([_DARWIN_C_SOURCE], [200112L], [Needed to get NSIG on Mac OS X])
;;
*-*-mingw* )
AC_DEFINE([WIN32_LEAN_AND_MEAN], 1, [Needed to avoid including unnecessary headers])
;;
esac
# M4