From 1664aaaa2678f7fe329ee046cfa0a5720f36c1be Mon Sep 17 00:00:00 2001 From: Linquize Date: Tue, 5 Nov 2013 23:39:05 +0800 Subject: [PATCH] Make blame example compile on MSVC --- examples/blame.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/blame.c b/examples/blame.c index 06310d540..1f5db69a1 100644 --- a/examples/blame.c +++ b/examples/blame.c @@ -14,6 +14,11 @@ #include "common.h" +#ifdef _MSC_VER +#define snprintf sprintf_s +#define strcasecmp strcmpi +#endif + /** * This example demonstrates how to invoke the libgit2 blame API to roughly * simulate the output of `git blame` and a few of its command line arguments.