Commit 88a3b8e1c863cea01a625a6f41205a306c2cccd2

Peter Pettersson 2021-07-26T23:12:12

common.h: use inline when compiling for c99 and later

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/common.h b/src/common.h
index 9123fb5..f83eeb6 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