summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-05 17:07:34 +0000
committerZachary Turner <zturner@google.com>2016-10-05 17:07:34 +0000
commit5a8ad4591bb688760c018b4f2e3ec51b3bb3c783 (patch)
tree31b2c619792632567e165cf0d45e710f350c9fce /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
parentd6ef28462bd17c39edef192a1298060910b0e15b (diff)
downloadbcm5719-llvm-5a8ad4591bb688760c018b4f2e3ec51b3bb3c783.tar.gz
bcm5719-llvm-5a8ad4591bb688760c018b4f2e3ec51b3bb3c783.zip
Make lldb -Werror clean on Windows.
Differential Revision: https://reviews.llvm.org/D25247 llvm-svn: 283344
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
index a79476bec9b..ee13b7a5cd1 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
@@ -20,8 +20,9 @@
#include "llvm/Support/Compiler.h"
#if defined(LLVM_ON_WIN32)
// If anyone #includes Host/PosixApi.h later, it will try to typedef pid_t. We
-// need to ensure
-// this doesn't happen.
+// need to ensure this doesn't happen. At the same time, Python.h will also try
+// to redefine a bunch of stuff that PosixApi.h defines. So define it all now
+// so that PosixApi.h doesn't redefine it.
#define NO_PID_T
#endif
#if defined(__linux__)
OpenPOWER on IntegriCloud