Commit 3f66c202029ab9911b3c4ce0d01eaf0a98111aba

Sebastian Schuberth 2011-06-10T13:57:01

Use "__inline" instead of "inline" with MSVC MSVC supports "inline" only in C++ code, not in C code.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/fileops.c b/src/fileops.c
index 54f6d93..2a78764 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -603,7 +603,7 @@ int gitfo_getcwd(char *buffer_out, size_t size)
 }
 
 #ifdef GIT_WIN32
-static inline time_t filetime_to_time_t(const FILETIME *ft)
+GIT_INLINE(time_t) filetime_to_time_t(const FILETIME *ft)
 {
 	long long winTime = ((long long)ft->dwHighDateTime << 32) + ft->dwLowDateTime;
 	winTime -= 116444736000000000LL; /* Windows to Unix Epoch conversion */