From a281b42b32e6ade8ff154f6cad3b8ec9f0c9f113 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 13 Nov 2015 17:27:20 +0000 Subject: Make PythonDataObjects.h work when LLDB_DISABLE_PYTHON=1 llvm-svn: 253054 --- lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | 4 ++++ lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h index a23052f6871..4e1eed668c3 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -10,6 +10,8 @@ #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONDATAOBJECTS_H #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONDATAOBJECTS_H +#ifndef LLDB_DISABLE_PYTHON + // C Includes // C++ Includes // Other libraries and framework includes @@ -488,4 +490,6 @@ class PythonFile : public PythonObject } // namespace lldb_private +#endif + #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONDATAOBJECTS_H diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h index 3cf24ffed00..c74e52b9ef5 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h @@ -10,6 +10,8 @@ #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONEXCEPTIONSTATE_H #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONEXCEPTIONSTATE_H +#ifndef LLDB_DISABLE_PYTHON + #include "PythonDataObjects.h" namespace lldb_private @@ -64,3 +66,5 @@ class PythonExceptionState } #endif + +#endif -- cgit v1.2.3