Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows compilation in image_publisher.cpp #1061

Merged
merged 1 commit into from
Jan 6, 2025

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

Copy link

mergify bot commented Jan 6, 2025

backport jazzy

✅ Backports have been created

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 <[email protected]>
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