Re: [patch] additional functionality for Python backend

"M. Levinson" <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
On Sep 21, 2006, Kalle Olavi Niemitalo writes:
>I get a preprocessor error and reverting the quoted patch fixes it.

Hmm, I was trying to follow this advice from doc/hacking.txt: "Please
keep includes in alphabetical order unless a specific order is required
for compilation on weird systems (then please at least make a proper
comment about that)."

Would the attached version of the patch work correctly under Debian?

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
src_scripting_python_python.c.diff (text/x-patch, 460 B)
diff --git a/mrldev:src/scripting/python/python.c b/mrldev:src/scripting/python/python.c
index cf9e0c0..e1bc374 100644
--- a/mrldev:src/scripting/python/python.c
+++ b/mrldev:src/scripting/python/python.c
@@ -4,11 +4,12 @@ #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include "scripting/python/core.h"
+#include <Python.h>
 
 #include "elinks.h"
 
 #include "main/module.h"
+#include "scripting/python/core.h"
 #include "scripting/python/hooks.h"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.