Eric Blake wrote: > I'd welcome a patch to gnulib to prove me wrong by fixing rpl_stat to be > an object-like instead of function-like macro, all while still allowing > compilation to succeed in all interfaces that take 'struct stat *' as a > parameter, including when using those interfaces via function pointer.
And such a patch should not interfere with _FILE_OFFSET_BITS=64, which triggers a "#define stat stat64" on some platforms. I don't think it's possible to satisfy all these requirements in C. Defining stat() as a macro with arguments was the least evil. Bruno