mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 18:03:38 +00:00
Move definitions of strcasecmp and strncasecmp to msvc-compat.h
should cut down on compiler warnings with mingw
This commit is contained in:
parent
2326ea68b5
commit
1a7ea63d22
@ -15,6 +15,9 @@
|
|||||||
typedef unsigned short mode_t;
|
typedef unsigned short mode_t;
|
||||||
typedef SSIZE_T ssize_t;
|
typedef SSIZE_T ssize_t;
|
||||||
|
|
||||||
|
#define strcasecmp(s1, s2) _stricmp(s1, s2)
|
||||||
|
#define strncasecmp(s1, s2, c) _strnicmp(s1, s2, c)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GIT_STDLIB_CALL __cdecl
|
#define GIT_STDLIB_CALL __cdecl
|
||||||
|
@ -32,8 +32,6 @@ extern int p_recv(GIT_SOCKET socket, void *buffer, size_t length, int flags);
|
|||||||
extern int p_send(GIT_SOCKET socket, const void *buffer, size_t length, int flags);
|
extern int p_send(GIT_SOCKET socket, const void *buffer, size_t length, int flags);
|
||||||
extern int p_inet_pton(int af, const char* src, void* dst);
|
extern int p_inet_pton(int af, const char* src, void* dst);
|
||||||
|
|
||||||
#define strcasecmp(s1, s2) _stricmp(s1, s2)
|
|
||||||
#define strncasecmp(s1, s2, c) _strnicmp(s1, s2, c)
|
|
||||||
extern int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr);
|
extern int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr);
|
||||||
extern int p_snprintf(char *buffer, size_t count, const char *format, ...) GIT_FORMAT_PRINTF(3, 4);
|
extern int p_snprintf(char *buffer, size_t count, const char *format, ...) GIT_FORMAT_PRINTF(3, 4);
|
||||||
extern int p_mkstemp(char *tmp_path);
|
extern int p_mkstemp(char *tmp_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user