From 9c89233156bcd08858fded00a95453c7cf43dd4c Mon Sep 17 00:00:00 2001 From: HiGarfield Date: Tue, 7 Jan 2025 12:20:44 +0800 Subject: [PATCH] Define `inline` as `__inline__` when using GCC with `-std=c89` --- src/process_iterator_freebsd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/process_iterator_freebsd.c b/src/process_iterator_freebsd.c index a89b67d1..d1c0aeee 100644 --- a/src/process_iterator_freebsd.c +++ b/src/process_iterator_freebsd.c @@ -29,8 +29,12 @@ #endif #if defined(__STRICT_ANSI__) || !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) +#ifdef __GNUC__ +#define inline __inline__ +#else #define inline #endif +#endif #include #include