Make blame example compile on MSVC

This commit is contained in:
Linquize 2013-11-05 23:39:05 +08:00
parent 66d585c6b3
commit 1664aaaa26

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.