Skip to content

Commit 708d933

Browse files
authored
Merge pull request libgit2#5953 from boretrk/c99-inline
common.h: use inline when compiling for C99 and later
2 parents 003a1df + 88a3b8e commit 708d933

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)