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:
parent
7208c94ee3
commit
fe04426778
@ -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
|
||||
|
@ -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>
|
||||
|
@ -11,6 +11,7 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <isc/assertions.h>
|
||||
#include <isc/condition.h>
|
||||
|
@ -41,6 +41,7 @@ typedef uint32_t socklen_t;
|
||||
* Limits
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifndef NAME_MAX
|
||||
#define NAME_MAX _MAX_FNAME
|
||||
#endif
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <intrin.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user