]> git.sur5r.net Git - openocd/blobdiff - configure.ac
configure: define WIN32_LEAN_AND_MEAN early to make it effective
[openocd] / configure.ac
index ce28633812d909fdcc0a2e27223a938d6a5f6b73..36058466bb53373b7cec52ca93c6673352b6b527 100644 (file)
@@ -623,6 +623,10 @@ case $host in
     ;;
 esac
 
+if test $is_win32 = yes; then
+    AC_DEFINE([WIN32_LEAN_AND_MEAN], [1], [1 to exclude old conflicting definitions when building on Windows])
+fi
+
 if test $build_parport = yes; then
   build_bitbang=yes
   AC_DEFINE([BUILD_PARPORT], [1], [1 if you want parport.])