mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 16:22:40 +00:00
Merge pull request #311 from nulltoken/ntk/fix-win32-specs
Ntk/fix win32 specs
This commit is contained in:
commit
0448310f73
@ -105,7 +105,7 @@ static int reflog_write(git_repository *repo, const char *ref_name,
|
||||
|
||||
static int reflog_parse(git_reflog *log, const char *buf, size_t buf_size)
|
||||
{
|
||||
int error;
|
||||
int error = GIT_SUCCESS;
|
||||
const char *ptr;
|
||||
git_reflog_entry *entry;
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# define CLZ(x) __builtin_clz(x)
|
||||
#elif defined(_MSV_VER)
|
||||
#elif defined(_MSC_VER)
|
||||
# define CLZ(x) _CountLeadingZeros(x)
|
||||
#else
|
||||
int CLZ(int32_t x)
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <ctype.h>
|
||||
#include "posix.h"
|
||||
|
||||
#ifdef _MSV_VER
|
||||
#ifdef _MSC_VER
|
||||
# include <Shlwapi.h>
|
||||
#endif
|
||||
|
||||
|
@ -211,7 +211,7 @@ char *p_realpath(const char *orig_path, char *buffer)
|
||||
|
||||
int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
|
||||
{
|
||||
#ifdef _MSV_VER
|
||||
#ifdef _MSC_VER
|
||||
int len = _vsnprintf(buffer, count, format, argptr);
|
||||
return (len < 0) ? _vscprintf(format, argptr) : len;
|
||||
#else /* MinGW */
|
||||
|
Loading…
Reference in New Issue
Block a user