mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
[lldb-dap] Fix error C2065: 'PATH_MAX': undeclared identifier
This should fix the Windows build.
This commit is contained in:
@@ -12,6 +12,15 @@
|
||||
#include "LLDBUtils.h"
|
||||
#include "lldb/API/SBFileSpec.h"
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX MAX_PATH
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace lldb_dap {
|
||||
|
||||
static void SendThreadExitedEvent(DAP &dap, lldb::tid_t tid) {
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
#include <windows.h>
|
||||
#undef GetObject
|
||||
#include <io.h>
|
||||
typedef int socklen_t;
|
||||
#else
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -91,13 +92,6 @@
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX MAX_PATH
|
||||
#endif
|
||||
typedef int socklen_t;
|
||||
#endif
|
||||
|
||||
using namespace lldb_dap;
|
||||
using lldb_private::NativeSocket;
|
||||
using lldb_private::Socket;
|
||||
|
||||
Reference in New Issue
Block a user