--- src/astyle_main.cpp	2018-01-11 18:18:19.000000000 +0100
+++ src/astyle_main.cpp	2018-01-12 13:30:53.272485434 +0100
@@ -35,6 +35,7 @@
 
 #include "astyle_main.h"
 
+#include <limits.h>
 #include <algorithm>
 #include <cerrno>
 #include <clocale>		// needed by some compilers
