Commit 8740a18
Enable MSVC math constants for custom demo plugin (#884)
This upstreams a generalized form of RoboStack build fix patch/ros-rolling-gz-ros2-control-demos.win.patch.
Best guess rationale: the custom hardware demo plugin uses C math constants that MSVC exposes only when _USE_MATH_DEFINES is defined before including math headers. Defining it for the target on MSVC keeps the demo portable without affecting other toolchains.
Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
Co-authored-by: Daisuke Nishimatsu <nishimarudai@gmail.com>1 parent 262f2d7 commit 8740a18
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments