+#ifdef ENABLE_PARMETIS
+// include parmetis.h even if it is not needed here
+// to avoid inclusion of c++ definitions within extern "C"
+// from metis.h from parmetis.h from mpi.h(openmpi) from mpicxx.h
+#include <parmetis.h>
+#endif
extern "C"
{
#include "metis.h"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#ifdef ENABLE_PARMETIS
+// include parmetis.h even if it is not needed here
+// to avoid inclusion of c++ definitions within extern "C"
+// from metis.h from parmetis.h from mpi.h(openmpi) from mpicxx.h
+#include <parmetis.h>
+#endif
extern "C"
{
#include "metis.h"