From 209849a44961d4fb86fc51710affec6d8c407cf7 Mon Sep 17 00:00:00 2001 From: Julio Espinoza-Sokal Date: Mon, 15 Jun 2009 21:27:49 -0400 Subject: [PATCH] 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 Signed-off-by: Andreas Ericsson --- src/cc-compat.h | 8 -------- src/fileops.h | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/cc-compat.h b/src/cc-compat.h index 4141dd83e..8997caa24 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -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__ */ diff --git a/src/fileops.h b/src/fileops.h index 749a91d74..02e4e5bb2 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -17,13 +17,13 @@ #include #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); }