Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-11-05 19:39:05 +0400
committerLinquize <linquize@yahoo.com.hk>2014-01-27 18:41:05 +0400
commit1664aaaa2678f7fe329ee046cfa0a5720f36c1be (patch)
tree8cda5cb7b9c776c9a98f460a631892447ad184bf /examples
parent66d585c6b344562c67812840aca5ea76881f7446 (diff)
Make blame example compile on MSVC
Diffstat (limited to 'examples')
-rw-r--r--examples/blame.c5
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.