From 3115af0c8bac6ddb4d51938aec22b1a89bcb7d70 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 22 Sep 2018 07:51:41 +0200
Subject: [PATCH] Include the integer min and max limits in partition.c and
 activate their usage in C++ via macro definition.

---
 src/partition.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/partition.c b/src/partition.c
index 252027c4c0..6a88731d51 100644
--- a/src/partition.c
+++ b/src/partition.c
@@ -37,19 +37,19 @@
 #include <stdlib.h>
 #include <strings.h>
 
+/* Include int min and max values. Define these limits in C++ as well. */
+#define __STDC_LIMIT_MACROS
+#include <stdint.h>
+
 /* MPI headers. */
 #ifdef WITH_MPI
 #include <mpi.h>
 /* METIS/ParMETIS headers only used when MPI is also available. */
 #ifdef HAVE_PARMETIS
-#define __STDC_LIMIT_MACROS
 #include <parmetis.h>
-#include <stdint.h>
 #endif
 #ifdef HAVE_METIS
-#define __STDC_LIMIT_MACROS
 #include <metis.h>
-#include <stdint.h>
 #endif
 #endif
 
-- 
GitLab