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:
committed by
Carlos R. Mafra
parent
7f6699ffca
commit
90d24a1648
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user