AndrewWalker / pydubins

Python wrapper of the C version of the Dubins-Curves library
MIT License
72 stars 54 forks source link

M_PI is not declared #10

Open tuncali opened 6 years ago

tuncali commented 6 years ago

Depending on the configuration, M_PI may not be declared in math.h (e.g. my system) which causes "M_PI is not declared" error. You may want to add the following to dubins.c in order to eliminate compatibility issues:

ifndef M_PI

#define M_PI 3.14159265358979323846

endif