summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-02-20 14:27:10 -0800
committerRussell Belfer <rb@github.com>2014-02-20 14:27:10 -0800
commit72556cc63ba93a187589921c6008caf92686ea9c (patch)
tree441873fde7a3ccc7f8fba11a8555641dba891746 /src/common.h
parent68a19ca9ffb685123038a8d16c0a59845f147778 (diff)
downloadlibgit2-72556cc63ba93a187589921c6008caf92686ea9c.tar.gz
Address PR comments
* Make GIT_INLINE an internal definition so it cannot be used in public headers * Fix language in CONTRIBUTING * Make index caps API use signed instead of unsigned values
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index e315b5979..d389cf85d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -10,6 +10,13 @@
#include "git2/common.h"
#include "cc-compat.h"
+/** 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
+
#include <assert.h>
#include <errno.h>
#include <limits.h>