Include limits.h in the compiler for PATH_MAX
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666491 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index f2f3a9b..c6a848b 100644
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -24,10 +24,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
+#include <limits.h>
#ifdef MINGW
# include <windows.h> /* for GetFullPathName */
-# include <limits.h>
#endif
// Careful: must include globals first for extern definitions