From f3a6d2de3440328cb419d6f3efe71117e5395fe2 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sun, 10 Feb 2013 22:30:59 +0100
Subject: [PATCH] Include python prior to everything else

---
 src/one-body-sample.cc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 033aeac9..3977d102 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -1,7 +1,13 @@
+#include <Python.h>
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#ifndef HAVE_PYTHON
+#error Python is required
+#endif
+
 #ifdef HAVE_IPOPT
 #undef HAVE_IPOPT
 #endif
@@ -14,10 +20,6 @@
 #error DIM unset
 #endif
 
-#ifndef HAVE_PYTHON
-#error Python is required
-#endif
-
 #if !HAVE_ALUGRID
 #error ALUGRID is required
 #endif
@@ -28,8 +30,6 @@
 
 #include <boost/format.hpp>
 
-#include <Python.h>
-
 #include <dune/common/bitsetvector.hh>
 #include <dune/common/exceptions.hh>
 #include <dune/common/fmatrix.hh>
-- 
GitLab