Blame src/win32/msvc-compat.h

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