Skip to content

Commit

Permalink
use math defines and include cmath
Browse files Browse the repository at this point in the history
This commit adds the "use math defines" statement and includes cmath. Otherwise gauss_transform_fgt.cpp will not compile when using fgt, because M_PI is undefined
  • Loading branch information
marcopus authored and gadomski committed Aug 3, 2017
1 parent c3dd116 commit ef36583
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gauss_transform_fgt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#define _USE_MATH_DEFINES

#include <cpd/gauss_transform_fgt.hpp>
#include <cmath>

namespace cpd {
std::unique_ptr<GaussTransform> GaussTransform::make_default() {
Expand Down

0 comments on commit ef36583

Please sign in to comment.