libgit2/libgit2 — pull request #1234 by arrbee (2013-01-12 06:33:21+00:00)
Title: Add p_strnlen wrapper and mingw implementation

Apparently MinGW can't be bothered to support POSIX `strnlen` so this adds a `p_strnlen` wrapper which is a `#define` on all platforms except on MinGW. Also, this has a quick little MinGW implementation for `p_strnlen()` which should get the job done.