summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-31 22:40:10 +0900
committerSlávek Banko <slavek.banko@axis.cz>2018-11-02 13:14:03 +0100
commita47e042892e6d1f72a68dfd492eaefaad5ac27a3 (patch)
tree347a00352bdb921ff3ee2705b164746aef112683
parent65da65ad2c76b2761448a6d47a3cb5347b9df1e8 (diff)
downloadtdelibs-a47e042892e6d1f72a68dfd492eaefaad5ac27a3.tar.gz
tdelibs-a47e042892e6d1f72a68dfd492eaefaad5ac27a3.zip
Fixed potential FTBFS in htmlattrs.c. This relates to bug 2850.
The FTBFS seems to happen only for some users, so this fix should help in such cases. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6629107ba8a632873a06d2bb77b0829346645ea7)
-rw-r--r--khtml/misc/htmlattrs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/khtml/misc/htmlattrs.c b/khtml/misc/htmlattrs.c
index 779792e71..5ceaf351d 100644
--- a/khtml/misc/htmlattrs.c
+++ b/khtml/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 *