Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.

* HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c
  globals.c parser.c threads.c tree.c valid.c xmlmemory.c
  xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h
  include/libxml/parserInternals.h include/libxml/tree.h
  include/libxml/xmlmemory.h include/libxml/xpathInternals.h:
  Tentatively fixed #69655 , make compiling with -Wredundant-decls
  clean.
* python/libxml.c: fixed a warning.
Daniel
diff --git a/build_glob.py b/build_glob.py
index 33856cd..dc42c24 100755
--- a/build_glob.py
+++ b/build_glob.py
@@ -66,7 +66,6 @@
         fields = string.split(line, ",")
         # Update the header file
         writeline(global_functions_hdr)
-        writeline(global_functions_hdr, "#ifdef LIBXML_THREAD_ENABLED")
         global_functions_hdr.write("extern "+fields[0]+" *")
         if len(fields) == 3:
             global_functions_hdr.write("(*")
@@ -74,6 +73,7 @@
         if len(fields) == 3:
             global_functions_hdr.write(")"+fields[2])
         writeline(global_functions_hdr,";")
+        writeline(global_functions_hdr, "#ifdef LIBXML_THREAD_ENABLED")
         writeline(global_functions_hdr,"#define "+fields[1]+" \\")
         writeline(global_functions_hdr,"(*(__"+fields[1]+"()))")
         writeline(global_functions_hdr,"#else")
@@ -84,7 +84,7 @@
         writeline(global_functions_hdr,"#endif")
         # Update the implementation file
         writeline(global_functions_impl)
-        writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";")
+#        writeline(global_functions_impl, "extern "+fields[0]+" "+fields[1]+";")
         writeline(global_functions_impl, "#undef\t"+fields[1])
         writeline(global_functions_impl, fields[0]+" *")
         if len(fields) == 3: