Merge pull request #2079 from linquize/msvc-blame-example

Make blame example compile on MSVC
This commit is contained in:
Vicent Marti 2014-01-27 09:34:32 -08:00
commit 9ff34a533d

View File

@ -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.