Revision 1d27164f1a4733680703fb86654b300c66d7dc34 authored by Junio C Hamano on 27 August 2018, 21:33:48 UTC, committed by Junio C Hamano on 27 August 2018, 21:33:48 UTC
Test fixes.

* sg/t7501-thinkofix:
  t7501-commit: drop silly command substitution
2 parent s df19317 + 15da753
Raw File
msvc.h
#ifndef __MSVC__HEAD
#define __MSVC__HEAD

#include <direct.h>
#include <process.h>
#include <malloc.h>
#include <io.h>

/* porting function */
#define inline __inline
#define __inline__ __inline
#define __attribute__(x)
#define strncasecmp  _strnicmp
#define ftruncate    _chsize
#define strtoull     _strtoui64
#define strtoll      _strtoi64

static __inline int strcasecmp (const char *s1, const char *s2)
{
	int size1 = strlen(s1);
	int sisz2 = strlen(s2);
	return _strnicmp(s1, s2, sisz2 > size1 ? sisz2 : size1);
}

#undef ERROR

#include "compat/mingw.h"

#endif
back to top