]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: remove WIN32_LEAN_AND_MEAN from individual build systems
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Tue, 11 Jul 2017 14:51:48 +0000 (16:51 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Tue, 11 Jul 2017 16:16:23 +0000 (18:16 +0200)
It's defined for all build systems in curl_setup.h since commit
beb08481d01a07a8b10938b1078a5e298b1c2912. This caused macro
redefinition warnings in the configure builds.

Closes https://github.com/curl/curl/pull/1677

acinclude.m4
lib/curl_config.h.cmake

index fe0e020b08593a6e97e7a349242e3c377bc41791..8a6c414a792e94d3cdda20799374c4fb70846c48 100644 (file)
@@ -199,8 +199,6 @@ AC_DEFUN([CURL_CHECK_HEADER_WINDOWS], [
     yes)
       AC_DEFINE_UNQUOTED(HAVE_WINDOWS_H, 1,
         [Define to 1 if you have the windows.h header file.])
-      AC_DEFINE_UNQUOTED(WIN32_LEAN_AND_MEAN, 1,
-        [Define to avoid automatic inclusion of winsock.h])
       ;;
   esac
 ])
index 812d96977a4709f00576ff9a5413a648d9d09410..c1452b3e7203583a2c3910d8db1e3a1287765e89 100644 (file)
 /* Version number of package */
 #cmakedefine VERSION ${VERSION}
 
-/* Define to avoid automatic inclusion of winsock.h */
-#cmakedefine WIN32_LEAN_AND_MEAN 1
-
 /* Define to 1 if OS is AIX. */
 #ifndef _ALL_SOURCE
 #  undef _ALL_SOURCE