Merge pull request #196 from sschuberth/cmake-msvc2010 Cmake msvc2010
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
diff --git a/.gitignore b/.gitignore
index ddff317..254e63d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-
/apidocs
/trash-*.exe
/libgit2.pc
@@ -13,10 +12,13 @@
.waf*
build/
tests/tmp/
-msvc/Debug/
-msvc/Release/
-*.suo
-*.user
-*.sdf
+msvc/Debug/
+msvc/Release/
+*.sln
+*.suo
+*.vc*proj*
+*.sdf
*.opensdf
+CMake*
+*.cmake
.DS_Store
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 == '-';
}
diff --git a/src/msvc-compat.h b/src/msvc-compat.h
index d4c031d..7422a7a 100644
--- a/src/msvc-compat.h
+++ b/src/msvc-compat.h
@@ -17,6 +17,10 @@
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
+/* case-insensitive string comparision */
+# define strcasecmp _stricmp
+# define strncasecmp _strnicmp
+
#if (_MSC_VER >= 1600)
# include <stdint.h>
#else