summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Pettersson <boretrk@hotmail.com>2021-07-26 23:12:12 +0200
committerPeter Pettersson <boretrk@hotmail.com>2021-07-26 23:12:12 +0200
commit88a3b8e1c863cea01a625a6f41205a306c2cccd2 (patch)
tree0f98066f8c9215f31cdb5926c04fa96470c30f54
parent43b5075df4c543fc8801ed4b829702d7f9f2c0ad (diff)
downloadlibgit2-88a3b8e1c863cea01a625a6f41205a306c2cccd2.tar.gz
common.h: use inline when compiling for c99 and later
-rw-r--r--src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 9123fb595..f83eeb69e 100644
--- a/src/common.h
+++ b/src/common.h
@@ -19,6 +19,8 @@
# define GIT_INLINE(type) static __inline type
#elif defined(__GNUC__)
# define GIT_INLINE(type) static __inline__ type
+#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+# define GIT_INLINE(type) static inline type
#else
# define GIT_INLINE(type) static type
#endif