From fc0eebf2c4701c9747cb678ee7592d58a9943d1d Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Tue, 7 Jun 2011 23:46:08 +0200 Subject: win32: define WIN32_LEAN_AND_MEAN This makes windows.h include less headers. Otherwise boolean is typedef'ed and that clashes with libjson. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9d388ef3..56d4e632 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- cgit