1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-18 15:27:45 +02:00

Only include python libs when necessary

This commit is contained in:
jfreegman 2017-06-06 19:03:40 -04:00
parent 56a9571509
commit 922c184195
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
4 changed files with 12 additions and 2 deletions

View File

@ -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;

View File

@ -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

View File

@ -20,9 +20,11 @@
*
*/
#ifdef PYTHON
#include <Python.h>
#include "api.h"
#endif /* PYTHON */
#include "execute.h"
extern Tox *user_tox;

View File

@ -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);