Re: GConf and libxml....



On Thu, 2001-12-13 at 12:42, Chema Celorio wrote:
> On Thu, 2001-12-13 at 10:23, Daniel Veillard wrote:
> > On Thu, Dec 13, 2001 at 05:00:03PM +0100, Mathieu Lacage wrote:
> > > Obviously, the correct patch to get the stuff to build is:
> > > -#include <libxml/tree.h>
> > > -#include <libxml/parser.h>
> > > -#include <libxml/xmlmemory.h>
> > > +#include <tree.h>       /* libxml */
> > > +#include <parser.h>     /* libxml */
> > > +#include <xmlmemory.h>  /* libxml */
> > 
> >   NO !
> >   The include in the code MUST remain #include <libxml/...h>
> 
> The problem is that : #include <tree.h> does compile.
> 
> [chema saracuatro b]$ cat a.c
> #include <tree.h>
> 
> int
> main (int argc, char* argv[])
> {
> 	return 0;
> }
> [chema saracuatro b]$ gcc `xml2-config --cflags` a.c 
> [chema saracuatro b]$ 
> 
> Maybe we should add a :
> #warning You should include <libxml/ in your #include line ....
> In the headers that are included without the libxml.
> (this would require a install time hack to have different headers in
> $prefix/include/libxml2/libxml and $prefix/include/libxml2/ )
> 
> Or even better, fix it the right way so that "tree.h" does not compile
> anymore.
> 
> regards,
> Chema
>  
> 
You may as well use #error, #warning is a gccism

-- 
Frank


_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]