mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:13:02 +01:00
Only include python libs when necessary
This commit is contained in:
parent
56a9571509
commit
922c184195
@ -30,11 +30,14 @@
|
||||
#include "line_info.h"
|
||||
#include "message_queue.h"
|
||||
#include "misc_tools.h"
|
||||
#include "python_api.h"
|
||||
#include "settings.h"
|
||||
#include "toxic_strings.h"
|
||||
#include "windows.h"
|
||||
|
||||
#ifdef PYTHON
|
||||
#include "python_api.h"
|
||||
#endif /* PYTHON */
|
||||
|
||||
Tox *user_tox;
|
||||
static WINDOW *cur_window;
|
||||
static ToxWindow *self_window;
|
||||
|
@ -26,7 +26,10 @@
|
||||
#include "toxic.h"
|
||||
#include "help.h"
|
||||
#include "misc_tools.h"
|
||||
|
||||
#ifdef PYTHON
|
||||
#include "api.h"
|
||||
#endif /* PYTHON */
|
||||
|
||||
#ifdef PYTHON
|
||||
#define HELP_MENU_HEIGHT 10
|
||||
|
@ -20,9 +20,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef PYTHON
|
||||
#include <Python.h>
|
||||
|
||||
#include "api.h"
|
||||
#endif /* PYTHON */
|
||||
|
||||
#include "execute.h"
|
||||
|
||||
extern Tox *user_tox;
|
||||
|
@ -23,7 +23,9 @@
|
||||
#ifndef PYTHON_API_H
|
||||
#define PYTHON_API_H
|
||||
|
||||
#ifdef PYTHON
|
||||
#include <Python.h>
|
||||
#endif /* PYTHON */
|
||||
|
||||
PyMODINIT_FUNC PyInit_toxic_api(void);
|
||||
void terminate_python(void);
|
||||
|
Loading…
Reference in New Issue
Block a user