Commit 765fdf4a0e9ca6a0f577cad60f69e15e77bfa601

Sebastian Schuberth 2011-05-18T17:19:38

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/config_file.c b/src/config_file.c
index 37bb279..fcd15c6 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -565,7 +565,7 @@ void cfg_consume_line(file_backend *cfg)
 	cfg->reader.read_ptr = line_end;
 }
 
-static inline int config_keychar(int c)
+GIT_INLINE(int) config_keychar(int c)
 {
 	return isalnum(c) || c == '-';
 }