mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 23:19:28 +00:00
Make blame example compile on MSVC
This commit is contained in:
parent
66d585c6b3
commit
1664aaaa26
@ -14,6 +14,11 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#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
|
* 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.
|
* simulate the output of `git blame` and a few of its command line arguments.
|
||||||
|
Loading…
Reference in New Issue
Block a user