1c14a5a88SDimitry Andric //===-- PythonReadline.h ----------------------------------------*- C++ -*-===// 2c14a5a88SDimitry Andric // 3c14a5a88SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4c14a5a88SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5c14a5a88SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6c14a5a88SDimitry Andric // 7c14a5a88SDimitry Andric //===----------------------------------------------------------------------===// 8c14a5a88SDimitry Andric 9c14a5a88SDimitry Andric #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H 10c14a5a88SDimitry Andric #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H 11c14a5a88SDimitry Andric 12*480093f4SDimitry Andric #include "lldb/Host/Config.h" 13*480093f4SDimitry Andric 14*480093f4SDimitry Andric #if LLDB_ENABLE_LIBEDIT && defined(__linux__) 15c14a5a88SDimitry Andric // NOTE: Since Python may define some pre-processor definitions which affect the 16c14a5a88SDimitry Andric // standard headers on some systems, you must include Python.h before any 17c14a5a88SDimitry Andric // standard headers are included. 18c14a5a88SDimitry Andric #include "Python.h" 19c14a5a88SDimitry Andric 20c14a5a88SDimitry Andric // no need to hack into Python's readline module if libedit isn't used. 21c14a5a88SDimitry Andric // 22c14a5a88SDimitry Andric #define LLDB_USE_LIBEDIT_READLINE_COMPAT_MODULE 1 23c14a5a88SDimitry Andric 24*480093f4SDimitry Andric PyMODINIT_FUNC initlldb_readline(void); 25c14a5a88SDimitry Andric 26c14a5a88SDimitry Andric #endif 27c14a5a88SDimitry Andric 28c14a5a88SDimitry Andric #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H 29