Skip to content

Commit

Permalink
fix: Don't try compiling code that won't without python.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Feb 22, 2024
1 parent 6fbcdc0 commit 3082ab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "toxic.h"

#ifdef PYTHON
PyMODINIT_FUNC PyInit_toxic_api(void);
void terminate_python(void);
void init_python(Toxic *toxic);
Expand All @@ -37,5 +38,6 @@ int do_python_command(int num_args, char (*args)[MAX_STR_SIZE]);
int python_num_registered_handlers(void);
int python_help_max_width(void);
void python_draw_handler_help(WINDOW *win);
#endif

#endif /* PYTHON_API_H */

0 comments on commit 3082ab9

Please sign in to comment.