pantor / ruckig

Motion Generation for Robots and Machines. Real-time. Jerk-constrained. Time-optimal.
https://ruckig.com
MIT License
635 stars 155 forks source link

Update roots.hpp #185

Closed fehimiltek closed 2 months ago

fehimiltek commented 3 months ago

with mingw it can causes some problems with M_PI macro. with cpp20, this pi number can be defined as standard.

pantor commented 3 months ago

Thanks for the PR! However Ruckig should support C++17 onwards, so we unfortunately can't rely on C++20 features right now. Are you able to add a check for C++20 and use this solution conditionally, otherwise I'll have to close this PR.