I'm not sure exactly what you mean here.  This is a total rewrite of ```resolve_symlink`` with a ```mingw_resolve_symlink```.   Part of this is because of windows specific paths, and part is so that all the working of ```resolve_symlink``` can be done in ```wchar_t``` strings and then convert once at the end.

I could always just ```#undef resolve_symlink``` before the definition of resolve_symlink - but that code would not be used anywhere.

I guess there could be a different define in compat/mingw.h  ```#define USE_ALT_RESOLVE_SYMLINK  ```  would do it.   I'm open to options.   All the code is saying here is 'if we are using an alternate resolve_symlink, then we don't need the standard one'.