Skip to content

fix(Foundation): add missing <limits> include in SharedMemory_WIN32#5248

Merged
matejk merged 1 commit intomainfrom
5176-missing-limits-include
Mar 15, 2026
Merged

fix(Foundation): add missing <limits> include in SharedMemory_WIN32#5248
matejk merged 1 commit intomainfrom
5176-missing-limits-include

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Mar 15, 2026

Summary

  • Add missing #include <limits> to SharedMemory_WIN32.cpp, fixing cross-compilation failures from Linux (e.g. MinGW on Debian 12) where the header is not pulled in transitively
  • Use explicit null-pointer comparisons for HANDLE/LPVOID checks

Closes #5176

…5176)

std::numeric_limits<DWORD> is used in the Win32 path but <limits> was
never included directly, causing build failures when cross-compiling
from Linux (e.g. MinGW on Debian 12) where the header is not pulled
in transitively.

Also use explicit null-pointer comparisons for HANDLE/LPVOID checks.
@matejk matejk force-pushed the 5176-missing-limits-include branch from 8797b74 to feedfb7 Compare March 15, 2026 16:09
@matejk matejk merged commit 36593e3 into main Mar 15, 2026
102 checks passed
@matejk matejk deleted the 5176-missing-limits-include branch March 15, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build error when cross-compiling for Win32 from Debian12

1 participant