mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 11:11:52 +00:00
Use GIT_INLINE macro instead of keyword inline.
No need to define inline as __inline because libgit2 code should be using GIT_INLINE instead. Signed-off-by: Julio Espinoza-Sokal <julioes@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
This commit is contained in:
parent
73c4dd9253
commit
209849a449
@ -46,12 +46,4 @@
|
||||
# define PRIuZ "Iu"
|
||||
#endif
|
||||
|
||||
/* Micosoft Visual C/C++ */
|
||||
#if defined(_MSC_VER)
|
||||
/* no direct support for C99 inline function specifier */
|
||||
# define inline __inline
|
||||
/* disable "deprecated function" warnings */
|
||||
# pragma warning ( disable : 4996 )
|
||||
#endif
|
||||
|
||||
#endif /* INCLUDE_compat_h__ */
|
||||
|
@ -17,13 +17,13 @@
|
||||
#include <time.h>
|
||||
|
||||
#ifdef GIT_WIN32
|
||||
static inline int link(const char *old, const char *new)
|
||||
GIT_INLINE(int) link(const char *old, const char *new)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
|
||||
static inline int git__mkdir(const char *path, int mode)
|
||||
GIT_INLINE(int) git__mkdir(const char *path, int mode)
|
||||
{
|
||||
return mkdir(path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user