rncbc / qjackctl

QjackCtl - JACK Audio Connection Kit Qt GUI Interface
https://qjackctl.sourceforge.io
GNU General Public License v2.0
186 stars 42 forks source link

Fix win32 build #116

Closed falkTX closed 3 years ago

falkTX commented 3 years ago

Macro is necessary on windows, otherwise the M_PI macro is missing. Build fails with:

qjackctlGraph.cpp: In member function 'void qjackctlGraphConnect::updatePathTo(const QPointF&)':
qjackctlGraph.cpp:982:55: error: 'M_PI' was not declared in this scope
  982 |  const qreal arrow_angle = path.angleAtPercent(0.5) * M_PI / 180.0;
rncbc commented 3 years ago

merged as https://github.com/rncbc/qjackctl/commit/e5c0239 onto develop branch.

thanks.