Paul Eggert wrote: >Derek Price <[EMAIL PROTECTED]> writes: > > > >>>This seems a bit brittle. Why not simply try to compile this program? >>> >>> #include <glob.h> >>> char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1]; >>> >>> >>Because I like to avoid runtime tests if I can avoid it, since they >>cannot be used when cross-compiling. >> >> > >The code that I proposed does not have any runtime tests, since the >array is allocated statically. Tests like this are often used during >cross-compiling. > >
Ah, I didn't realize the optimizer could be relied on for code like this. Fixed. Patch delayed until completion of today's email processing. Regards, Derek _______________________________________________ Bug-cvs mailing list Bug-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-cvs