mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed build error on Windows due to max
macro in windows.h
This commit is contained in:
parent
f69587656f
commit
3d9cc51851
1 changed files with 1 additions and 1 deletions
|
@ -2872,7 +2872,7 @@ inline bool mmap::open(const char *path) {
|
||||||
// See:
|
// See:
|
||||||
// https://github.com/yhirose/cpp-httplib/issues/1903#issuecomment-2316520721
|
// https://github.com/yhirose/cpp-httplib/issues/1903#issuecomment-2316520721
|
||||||
if (static_cast<ULONGLONG>(size.QuadPart) >
|
if (static_cast<ULONGLONG>(size.QuadPart) >
|
||||||
std::numeric_limits<decltype(size_)>::max()) {
|
(std::numeric_limits<decltype(size_)>::max)()) {
|
||||||
// `size_t` might be 32-bits, on 32-bits Windows.
|
// `size_t` might be 32-bits, on 32-bits Windows.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue