summaryrefslogtreecommitdiff
path: root/src/git/common.h
diff options
context:
space:
mode:
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__