Re: Infinite recursion with fopen

2011-08-30 Thread Bruno Haible
Michael Goffioul wrote: > Yes, it fixes the problem, thanks. Note that a similar problem may occur > in open.c Thanks for testing. I've applied this patch: 2011-08-30 Bruno Haible Avoid endless recursions if config.h includes some header files. * lib/fopen.c (__need_FILE): De

Re: Infinite recursion with fopen

2011-08-28 Thread Michael Goffioul
On Sun, Aug 28, 2011 at 7:30 AM, Bruno Haible wrote: > Hi Michael, > >> It appears the problem comes from the fact that stdio.h is pulled in >> indirectly from >> config.h, hence it is not surrounded by the __need_FILE macro that should >> prevent >> the problem from occuring. The inclusion patt

Re: Infinite recursion with fopen

2011-08-27 Thread Bruno Haible
Hi Michael, > It appears the problem comes from the fact that stdio.h is pulled in > indirectly from > config.h, hence it is not surrounded by the __need_FILE macro that should > prevent > the problem from occuring. The inclusion pattern is: > > config.h > stdint.h (because of octave config.h c

Re: Infinite recursion with fopen

2011-08-27 Thread Michael Goffioul
It appears the problem comes from the fact that stdio.h is pulled in indirectly from config.h, hence it is not surrounded by the __need_FILE macro that should prevent the problem from occuring. The inclusion pattern is: config.h stdint.h (because of octave config.h content) wchar.h (because of std