Skip to content

Define WIN32_LEAN_AND_MEAN for remote logging - #659

Open
Tobias-Fischer wants to merge 1 commit into
ros:ros2from
Tobias-Fischer:codex/robostack-rolling-diagnostics-win32-lean
Open

Define WIN32_LEAN_AND_MEAN for remote logging#659
Tobias-Fischer wants to merge 1 commit into
ros:ros2from
Tobias-Fischer:codex/robostack-rolling-diagnostics-win32-lean

Conversation

@Tobias-Fischer

Copy link
Copy Markdown

This is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: patch/ros-rolling-diagnostic-remote-logging.win.patch, authored by Daisuke Nishimatsu.

Best-guess rationale: diagnostic_remote_logging includes curl headers that can pull in Windows platform headers on MSVC. Defining WIN32_LEAN_AND_MEAN alongside NOMINMAX reduces Windows header surface and avoids common macro/type conflicts while preserving the existing non-Windows behavior.

This upstreams the remaining generally-applicable part of RoboStack build fix patch/ros-rolling-diagnostic-remote-logging.win.patch.

Best guess rationale: diagnostic_remote_logging includes curl headers that can pull in Windows platform headers on MSVC. Defining WIN32_LEAN_AND_MEAN alongside NOMINMAX reduces Windows header surface and avoids common macro/type conflicts while preserving the existing non-Windows behavior.

Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@mergify mergify Bot added the ros2 PR tackling a ROS2 branch label Jul 19, 2026
@mergify

mergify Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 and @traversaro: this upstreams a RoboStack downstream patch tracked in RoboStack/robostack.github.io#16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ros2 PR tackling a ROS2 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant