1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Unified usage of the 'inline' attribute for functions

Autoconf provides the necessary stuff to detect if inline keyword
is supported, and to detect special syntaxes, so let's use this
and remove the multiple local definitions, this makes code simpler.
This commit is contained in:
Christophe CURIS
2013-05-11 00:07:13 +02:00
committed by Carlos R. Mafra
parent 7f6699ffca
commit 90d24a1648
8 changed files with 11 additions and 28 deletions

View File

@@ -159,7 +159,7 @@ void RClearImage(RImage * image, const RColor * color)
}
}
static __inline__ unsigned char clip(int c)
static inline unsigned char clip(int c)
{
if (c > 255)
c = 255;