mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 15:53:26 +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 "line_info.h"
|
||||||
#include "message_queue.h"
|
#include "message_queue.h"
|
||||||
#include "misc_tools.h"
|
#include "misc_tools.h"
|
||||||
#include "python_api.h"
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "toxic_strings.h"
|
#include "toxic_strings.h"
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
|
#ifdef PYTHON
|
||||||
|
#include "python_api.h"
|
||||||
|
#endif /* PYTHON */
|
||||||
|
|
||||||
Tox *user_tox;
|
Tox *user_tox;
|
||||||
static WINDOW *cur_window;
|
static WINDOW *cur_window;
|
||||||
static ToxWindow *self_window;
|
static ToxWindow *self_window;
|
||||||
|
@ -26,7 +26,10 @@
|
|||||||
#include "toxic.h"
|
#include "toxic.h"
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
#include "misc_tools.h"
|
#include "misc_tools.h"
|
||||||
|
|
||||||
|
#ifdef PYTHON
|
||||||
#include "api.h"
|
#include "api.h"
|
||||||
|
#endif /* PYTHON */
|
||||||
|
|
||||||
#ifdef PYTHON
|
#ifdef PYTHON
|
||||||
#define HELP_MENU_HEIGHT 10
|
#define HELP_MENU_HEIGHT 10
|
||||||
|
@ -20,9 +20,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef PYTHON
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
#include "api.h"
|
#include "api.h"
|
||||||
|
#endif /* PYTHON */
|
||||||
|
|
||||||
#include "execute.h"
|
#include "execute.h"
|
||||||
|
|
||||||
extern Tox *user_tox;
|
extern Tox *user_tox;
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
#ifndef PYTHON_API_H
|
#ifndef PYTHON_API_H
|
||||||
#define PYTHON_API_H
|
#define PYTHON_API_H
|
||||||
|
|
||||||
|
#ifdef PYTHON
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
#endif /* PYTHON */
|
||||||
|
|
||||||
PyMODINIT_FUNC PyInit_toxic_api(void);
|
PyMODINIT_FUNC PyInit_toxic_api(void);
|
||||||
void terminate_python(void);
|
void terminate_python(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user