Skip to content

Conversation

@traversaro
Copy link
Contributor

PR #985 added some code that used M_PI, but M_PI is not defined in any standard, and before including cmath or math.h in Windows it is necessary to define _USE_MATH_DEFINES to ensure that M_PI is defined.

@ahcorde ahcorde merged commit 86f51ab into ros-perception:rolling Jan 6, 2025
3 of 4 checks passed
@ahcorde
Copy link
Contributor

ahcorde commented Jan 6, 2025

https://github.com/Mergifyio backport jazzy

@mergify
Copy link
Contributor

mergify bot commented Jan 6, 2025

backport jazzy

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Jan 6, 2025
PR #985 added some
code that used `M_PI`, but `M_PI` is not defined in any standard, and
before including `cmath` or `math.h` in Windows it is necessary to
define `_USE_MATH_DEFINES` to ensure that `M_PI` is defined.

(cherry picked from commit 86f51ab)
ahcorde pushed a commit that referenced this pull request Jan 6, 2025
PR #985 added some
code that used `M_PI`, but `M_PI` is not defined in any standard, and
before including `cmath` or `math.h` in Windows it is necessary to
define `_USE_MATH_DEFINES` to ensure that `M_PI` is defined.<hr>This is
an automatic backport of pull request #1061 done by
[Mergify](https://mergify.com).

Co-authored-by: Silvio Traversaro <silvio@traversaro.it>
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.

2 participants