2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

Define WIN32_LEAN_AND_MEAN globally instead of anecdotically

This commit is contained in:
Ondřej Surý 2020-05-28 09:02:45 +02:00
parent 7208c94ee3
commit fe04426778
5 changed files with 5 additions and 5 deletions

View File

@ -242,9 +242,9 @@ typedef __int64 off_t;
#include <io.h>
#define isatty _isatty
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1 /* Prevent inclusion of winsock.h in windows.h */
#endif /* WIN32_LEAN_AND_MEAN */
/*
* Make the number of available sockets large

View File

@ -24,7 +24,6 @@
#include <glob.h>
#elif defined(_WIN32)
#include <stdlib.h>
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#include <isc/list.h>

View File

@ -11,6 +11,7 @@
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <isc/assertions.h>
#include <isc/condition.h>

View File

@ -41,6 +41,7 @@ typedef uint32_t socklen_t;
* Limits
*/
#include <stdlib.h>
#ifndef NAME_MAX
#define NAME_MAX _MAX_FNAME
#endif

View File

@ -11,7 +11,6 @@
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <intrin.h>
#include <stdbool.h>
#include <stddef.h>