From 8a9a366fef8ff1d2b52163b814d3d102b23fcebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 24 May 2020 03:54:47 +0200 Subject: [PATCH] strings.h: s/inline/__inline__/ As suggested by http://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Inline.html This should fix building things like NBDkit. Change-Id: I1da7fc140dd8451ff2ddaf599fe4e951401d0cb3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2794 Reviewed-by: Adrien Destugues --- headers/posix/strings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/posix/strings.h b/headers/posix/strings.h index adc06074b4..5a70c862b5 100644 --- a/headers/posix/strings.h +++ b/headers/posix/strings.h @@ -13,7 +13,7 @@ extern "C" { #endif -static inline int ffs(int i) { return __builtin_ffs(i); } +static __inline__ int ffs(int i) { return __builtin_ffs(i); } extern int strcasecmp(const char *string1, const char *string2); extern int strncasecmp(const char *string1, const char *string2,