diff options
author | Vicent Marti <vicent@github.com> | 2014-01-27 09:34:32 -0800 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-01-27 09:34:32 -0800 |
commit | 9ff34a533dd7a5862018e26e61b43619b6125092 (patch) | |
tree | 8cda5cb7b9c776c9a98f460a631892447ad184bf | |
parent | 66d585c6b344562c67812840aca5ea76881f7446 (diff) | |
parent | 1664aaaa2678f7fe329ee046cfa0a5720f36c1be (diff) | |
download | libgit2-9ff34a533dd7a5862018e26e61b43619b6125092.tar.gz |
Merge pull request #2079 from linquize/msvc-blame-example
Make blame example compile on MSVC
-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. |