Commit fe044267 authored by Ondřej Surý's avatar Ondřej Surý

Define WIN32_LEAN_AND_MEAN globally instead of anecdotically

parent 7208c94e
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment