mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
d27525e519
This also removes an implicit conversion from size_t (unsigned) to int (signed). _stricmp as well as _strnicmp are both available since VS2012. Signed-off-by: Sven Strickroth <email@cs-ware.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
24 lines
423 B
C
24 lines
423 B
C
#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 strcasecmp _stricmp
|
|
#define strncasecmp _strnicmp
|
|
#define ftruncate _chsize
|
|
#define strtoull _strtoui64
|
|
#define strtoll _strtoi64
|
|
|
|
#undef ERROR
|
|
|
|
#include "compat/mingw.h"
|
|
|
|
#endif
|