diff --git a/tdehtml/misc/htmlattrs.c b/tdehtml/misc/htmlattrs.c
index 779792e71..5ceaf351d 100644
--- a/tdehtml/misc/htmlattrs.c
+++ b/tdehtml/misc/htmlattrs.c
@@ -825,8 +825,9 @@ static const short lookup[] =
#ifdef __GNUC__
__inline
-#ifdef __GNUC_STDC_INLINE__
-__attribute__ ((__gnu_inline__))
+#else
+#ifdef __cplusplus
+inline
#endif
#endif
const struct attrs *