- The unlocked I/O module isn't actually what snprintfv wants. It needs flockfile and unlocked-io.h defines that to nothing. All it really wants is an autoconf check for unlocked IO.
Yes, the same thing that gnulib does in getdelim: #if !HAVE_FLOCKFILE # undef flockfile # define flockfile(x) ((void) 0) #endif #if !HAVE_FUNLOCKFILE # undef funlockfile # define funlockfile(x) ((void) 0) #endif We can just duplicate the code for now and put it in the todo list.
- I don't know how to make one gnulib module override another yet, but I'm sure we can work something out for the dynamic loading support - perhaps check an indicator #define for the optional module.
Same idea I had.
I will work on gnulib-izing snprintfv first. Are there any particular platforms you would recommend compiling for? Otherwise I'll default to Linux and mingw32.
Yeah, I can help testing it on MacOS. Thank you very much. Paolo