summaryrefslogtreecommitdiff
path: root/src/git/common.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-06-14 22:12:20 +0100
committerAndreas Ericsson <ae@op5.se>2009-06-15 07:34:28 +0200
commit8a086f872a3bb2cf8e437f0e374ea18e5cbaa899 (patch)
treec2ef0cadc189a076b8ed0d855da1e58502210507 /src/git/common.h
parent2bf93fa1071c3df7f43926c8e6c3bd2353d78160 (diff)
downloadlibgit2-8a086f872a3bb2cf8e437f0e374ea18e5cbaa899.tar.gz
win32: Add support for the MS Visual C/C++ compiler
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/git/common.h')
-rw-r--r--src/git/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/git/common.h b/src/git/common.h
index 75e1e84d1..c470e0e0a 100644
--- a/src/git/common.h
+++ b/src/git/common.h
@@ -21,7 +21,11 @@
#endif
/** Declare a function as always inlined. */
+#if defined(_MSC_VER)
+# define GIT_INLINE(type) static __inline type
+#else
# define GIT_INLINE(type) static inline type
+#endif
/** Declare a function's takes printf style arguments. */
#ifdef __GNUC__