Merge e16e1ab048fc180d2e6d4141486d3e2304cd2961 into 8b6b7d878c89e81614d05edca7936de41ccdd2da

This commit is contained in:
Pavel P 2023-03-03 10:43:08 +01:00 committed by GitHub
commit 5d29ba05de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View File

@ -29,6 +29,9 @@
#include <cstdint>
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif // NOMINMAX
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN

View File

@ -22,6 +22,12 @@
#define MIO_PAGE_HEADER
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif // NOMINMAX
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN
# include <windows.h>
#else
# include <unistd.h>

View File

@ -46,6 +46,12 @@
#define MIO_PAGE_HEADER
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif // NOMINMAX
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN
# include <windows.h>
#else
# include <unistd.h>
@ -108,6 +114,9 @@ inline size_t make_offset_page_aligned(size_t offset) noexcept
#include <cstdint>
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif // NOMINMAX
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN
@ -1300,6 +1309,12 @@ bool operator>=(const basic_mmap<AccessMode, ByteT>& a,
#define MIO_PAGE_HEADER
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif // NOMINMAX
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN
# include <windows.h>
#else
# include <unistd.h>