]> git.proxmox.com Git - libgit2.git/commitdiff
Use GIT_INLINE macro instead of keyword inline.
authorJulio Espinoza-Sokal <julioes@gmail.com>
Tue, 16 Jun 2009 01:27:49 +0000 (21:27 -0400)
committerAndreas Ericsson <ae@op5.se>
Tue, 16 Jun 2009 09:40:48 +0000 (11:40 +0200)
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>
src/cc-compat.h
src/fileops.h

index 4141dd83e5a7b99c7f2fb295709e2ec5a66aecc8..8997caa24765077a3c3b70deb995819488bceb90 100644 (file)
 # 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__ */
index 749a91d742b7535e1a746ae6708350705e270748..02e4e5bb290f13ce81d239c1d590621e2d146671 100644 (file)
 #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);
 }