mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
Define WIN32_LEAN_AND_MEAN globally instead of anecdotically
This commit is contained in:
@@ -242,9 +242,9 @@ typedef __int64 off_t;
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#define isatty _isatty
|
#define isatty _isatty
|
||||||
|
|
||||||
#ifndef _WINSOCKAPI_
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
|
#define WIN32_LEAN_AND_MEAN 1 /* Prevent inclusion of winsock.h in windows.h */
|
||||||
#endif
|
#endif /* WIN32_LEAN_AND_MEAN */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make the number of available sockets large
|
* Make the number of available sockets large
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#define WIN32_LEAN_AND_MEAN 1
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include <isc/list.h>
|
#include <isc/list.h>
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <isc/assertions.h>
|
#include <isc/assertions.h>
|
||||||
#include <isc/condition.h>
|
#include <isc/condition.h>
|
||||||
|
@@ -41,6 +41,7 @@ typedef uint32_t socklen_t;
|
|||||||
* Limits
|
* Limits
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#ifndef NAME_MAX
|
#ifndef NAME_MAX
|
||||||
#define NAME_MAX _MAX_FNAME
|
#define NAME_MAX _MAX_FNAME
|
||||||
#endif
|
#endif
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
Reference in New Issue
Block a user