[opengm] 123/386: use #ifdef instead of #if in test_learning.cxx

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository opengm.

commit c1a05fe844ea90430be01de0cde513b6da004df1
Author: Carsten Haubold <carstenhaubold at googlemail.com>
Date:   Thu Dec 18 15:03:07 2014 +0100

    use #ifdef instead of #if in test_learning.cxx
---
 src/unittest/learning/test_learning.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/unittest/learning/test_learning.cxx b/src/unittest/learning/test_learning.cxx
index 9a52ac2..99b03ee 100644
--- a/src/unittest/learning/test_learning.cxx
+++ b/src/unittest/learning/test_learning.cxx
@@ -8,7 +8,7 @@
 #include <opengm/inference/external/trws.hxx>
 #include <opengm/utilities/metaprogramming.hxx>
 
-#if WITH_GUROBI
+#ifdef WITH_GUROBI
 #include <opengm/inference/lpgurobi.hxx>
 #else
 #include <opengm/inference/lpcplex.hxx>
@@ -32,7 +32,7 @@ typedef opengm::meta::TypeListGenerator<opengm::ExplicitFunction<ValueType,Index
 typedef opengm::GraphicalModel<ValueType,opengm::Adder, FunctionListType, opengm::DiscreteSpace<IndexType,LabelType> > GM; 
 typedef opengm::learning::HammingLoss     LOSS;
 
-#if WITH_GUROBI
+#ifdef WITH_GUROBI
 typedef opengm::LPGurobi<GM,opengm::Minimizer> INF;
 #else
 typedef opengm::LPCplex<GM,opengm::Minimizer> INF;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git



More information about the debian-science-commits mailing list