mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-09 09:08:32 +00:00
Merge pull request #2079 from linquize/msvc-blame-example
Make blame example compile on MSVC
This commit is contained in:
commit
9ff34a533d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user