[mlpack] 05/207: moved cmath include for appveyor
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Mar 23 17:53:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 1f9718ff71eb78fd033ed44eb9d52c766ed1dbaf
Author: Mike Izbicki <mike at izbicki.me>
Date: Fri Dec 23 13:12:10 2016 -0800
moved cmath include for appveyor
---
src/mlpack/prereqs.hpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mlpack/prereqs.hpp b/src/mlpack/prereqs.hpp
index 01ac0ff..8ea52ed 100644
--- a/src/mlpack/prereqs.hpp
+++ b/src/mlpack/prereqs.hpp
@@ -11,6 +11,10 @@
#ifndef MLPACK_PREREQS_HPP
#define MLPACK_PREREQS_HPP
+// Defining _USE_MATH_DEFINES should set M_PI.
+#define _USE_MATH_DEFINES
+#include <cmath>
+
// First, check if Armadillo was included before, warning if so.
#ifdef ARMA_INCLUDES
#pragma message "Armadillo was included before mlpack; this can sometimes cause\
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list