Re: C89 compatibility

2009-03-05 Thread Reuben Thomas
On Thu, 5 Mar 2009, Simon Josefsson wrote: Did you run all the gnulib configure tests using the same compiler and flags? You can't change compiler and flags after running configure. I think this is my problem: I set CFLAGS after running gl_EARLY in configure.ac. Putting the setting right aft

Re: C89 compatibility

2009-03-05 Thread Bruno Haible
Reuben Thomas wrote: > Since gnulib works on many systems, I imagine it's supposed to work with C89 > compilers? Yes. > I'm working on a project which uses C89, so I just added the -std=c89 flag > to GCC when building it, How did you do that, exactly? I.e. please show the configure command lin

Re: C89 compatibility

2009-03-05 Thread Simon Josefsson
Reuben Thomas writes: > Since gnulib works on many systems, I imagine it's supposed to work > with C89 compilers? Yes. > I'm working on a project which uses C89, so I just added the -std=c89 > flag to GCC when building it, to find potential > problems. Unfortunately, some of the gnulib code I'm

C89 compatibility

2009-03-05 Thread Reuben Thomas
Since gnulib works on many systems, I imagine it's supposed to work with C89 compilers? I'm working on a project which uses C89, so I just added the -std=c89 flag to GCC when building it, to find potential problems. Unfortunately, some of the gnulib code I'm using now doesn't work: In file i