diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 033aeac95dd774670d5a22d50fbd4d7859fc1663..3977d10272314b83da768b9dd1140f54ac4d6f90 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>