Fix PATH_MAX definition after remarks in r231917 (MI)
authorIlia K <ki.stfu@gmail.com>
Thu, 12 Mar 2015 04:18:47 +0000 (04:18 +0000)
committerIlia K <ki.stfu@gmail.com>
Thu, 12 Mar 2015 04:18:47 +0000 (04:18 +0000)
llvm-svn: 232008

lldb/tools/lldb-mi/Driver.cpp
lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
lldb/tools/lldb-mi/Platform.h

index 2a90763..8d2840f 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <limits.h>
 #include <fcntl.h>
 #include <string>
 #endif // _MSC_VER
 
 #include "Platform.h" // CODETAG_IOR_SIGNALS
-#include "Driver.h"
+#include "Driver.h" // for PATH_MAX
 
 #ifdef _MSC_VER
 #include <lldb\Host\windows\getopt\GetOptInc.h>
index 41974ff..69746f1 100644 (file)
@@ -35,7 +35,6 @@
 #else
 #include <unistd.h> // For the ::access()
 #endif              // _WIN32
-#include <limits.h> // for PATH_MAX
 
 // In-house headers:
 #include "MICmnLLDBDebuggerHandleEvents.h"
@@ -50,7 +49,7 @@
 #include "MICmnStreamStderr.h"
 #include "MIUtilDebug.h"
 #include "MIDriver.h"
-#include "Platform.h" // for PATH_MAX on Windows
+#include "Platform.h" // for PATH_MAX
 
 //++ ------------------------------------------------------------------------------------
 // Details: CMICmnLLDBDebuggerHandleEvents constructor.
index 7c35131..ee63631 100644 (file)
@@ -89,6 +89,7 @@ extern sighandler_t signal(int sig, sighandler_t);
 #else
 
 #include <inttypes.h>
+#include <limits.h>
 
 #include <getopt.h>
 #include <libgen.h>