Skip to content

Commit 88a3b8e

Browse files
committed
common.h: use inline when compiling for c99 and later
1 parent 43b5075 commit 88a3b8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
# define GIT_INLINE(type) static __inline type
2020
#elif defined(__GNUC__)
2121
# define GIT_INLINE(type) static __inline__ type
22+
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
23+
# define GIT_INLINE(type) static inline type
2224
#else
2325
# define GIT_INLINE(type) static type
2426
#endif

0 commit comments

Comments
 (0)