about summary refs log tree commit diff stats
path: root/src/plugins/python_api.h
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-07-18 01:27:23 +0100
committerJames Booth <boothj5@gmail.com>2016-07-18 01:27:23 +0100
commit7d742f704fd495fc6b4cda85e0ee0f517bb77797 (patch)
tree5bb2a954a78fe9bea3668b935df08957614b2a00 /src/plugins/python_api.h
parentace2715cf72e504c94794d096966d864810f6e23 (diff)
downloadprofani-tty-7d742f704fd495fc6b4cda85e0ee0f517bb77797.tar.gz
Fix prof module init for python3
Diffstat (limited to 'src/plugins/python_api.h')
-rw-r--r--src/plugins/python_api.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/python_api.h b/src/plugins/python_api.h
index f936a9cb..339ac06b 100644
--- a/src/plugins/python_api.h
+++ b/src/plugins/python_api.h
@@ -35,8 +35,10 @@
 #ifndef PYTHON_API_H
 #define PYTHON_API_H
 
+#include <Python.h>
+
 void python_env_init(void);
-void python_api_init(void);
+PyMODINIT_FUNC python_api_init(void);
 void python_shutdown(void);
 
 void python_command_callback(PluginCommand *command, gchar **args);