summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/pychrysa.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/pychrysa.h')
-rw-r--r--plugins/pychrysa/pychrysa.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/plugins/pychrysa/pychrysa.h b/plugins/pychrysa/pychrysa.h
index 5897abe..0fdc074 100644
--- a/plugins/pychrysa/pychrysa.h
+++ b/plugins/pychrysa/pychrysa.h
@@ -25,7 +25,23 @@
#define _PLUGINS_PYCHRYSA_H
+/**
+ * Note:
+ * Since Python may define some pre-processor definitions which affect the standard headers
+ * on some systems, you must include Python.h before any standard headers are included.
+ *
+ * cf. https://docs.python.org/3.4/c-api/intro.html
+ */
#include <Python.h>
+
+
+
+
+
+
+#if 0
+
+
#include <glib-object.h>
#include <stdbool.h>
@@ -50,7 +66,8 @@ PluginAction get_plugin_action(const GPluginModule *);
#if PY_VERSION_HEX >= 0x03000000
/* Point d'entrée pour l'initialisation de Python. */
-PyMODINIT_FUNC PyInit_pychrysa(void);
+//PyMODINIT_FUNC PyInit_pychrysa(void);
+PyMODINIT_FUNC initpychrysa(void);
#else
@@ -59,6 +76,14 @@ PyMODINIT_FUNC initpychrysa(void);
#endif
+#endif
+
+
+
+
+/* Point d'entrée pour l'initialisation de Python. */
+PyMODINIT_FUNC PyInit_pychrysalide(void);
+
#endif /* _PLUGINS_PYCHRYSA_H */