On 12/05/2015 17:03, Claudio Fontana wrote: > I see, will take some time to figure out I think, due to my lack of > familiarity with the Windows compilation environment. > > Incidentally, if somebody knows of memmem equivalents in the Windows API, or > how function replacements are usually handled, please let me know. > > I guess we could add a replacement function in util/ to compile #ifdef _WIN32?
Yes, you can use $(CONFIG_WIN32) in util/Makefile.objs. It doesn't have to be fancy, a simple O(n^2) search would do. Later we could use Boyer-Moore or some other optimization. > Basically it would be a duplicate of the work already done in gnulib... Yes. The good thing is that it would be easy to test without a cross-compiler, since symbols in an executable override symbols in glibc. > are all other supported targets ok with using the GNU function memmem of > string.h ? Until they complain, they are... Paolo