diff options
author | Linquize <linquize@yahoo.com.hk> | 2013-11-05 19:39:05 +0400 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2014-01-27 18:41:05 +0400 |
commit | 1664aaaa2678f7fe329ee046cfa0a5720f36c1be (patch) | |
tree | 8cda5cb7b9c776c9a98f460a631892447ad184bf /examples | |
parent | 66d585c6b344562c67812840aca5ea76881f7446 (diff) |
Make blame example compile on MSVC
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blame.c | 5 |
1 files changed, 5 insertions, 0 deletions
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. |