Blame src/win32/msvc-compat.h

Packit ae9e2a
/*
Packit ae9e2a
 * Copyright (C) the libgit2 contributors. All rights reserved.
Packit ae9e2a
 *
Packit ae9e2a
 * This file is part of libgit2, distributed under the GNU GPL v2 with
Packit ae9e2a
 * a Linking Exception. For full terms see the included COPYING file.
Packit ae9e2a
 */
Packit ae9e2a
#ifndef INCLUDE_msvc_compat__
Packit ae9e2a
#define INCLUDE_msvc_compat__
Packit ae9e2a
Packit ae9e2a
#if defined(_MSC_VER)
Packit ae9e2a
Packit ae9e2a
typedef unsigned short mode_t;
Packit ae9e2a
typedef SSIZE_T ssize_t;
Packit ae9e2a
Packit ae9e2a
#define strcasecmp(s1, s2) _stricmp(s1, s2)
Packit ae9e2a
#define strncasecmp(s1, s2, c) _strnicmp(s1, s2, c)
Packit ae9e2a
Packit ae9e2a
#endif
Packit ae9e2a
Packit ae9e2a
#define GIT_STDLIB_CALL __cdecl
Packit ae9e2a
Packit ae9e2a
#endif /* INCLUDE_msvc_compat__ */