diff options
author | Christian Beier <dontmind@freeshell.org> | 2017-02-20 20:47:42 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2017-02-20 20:47:42 +0100 |
commit | 425e24196b7de15875d08c94c5ff59a6a3642654 (patch) | |
tree | 820afadae20ae91ea2f66121d7708956907da39a /libvncserver | |
parent | 3a9e3601be20577fe5f88a44b8f54f3e9209208f (diff) | |
download | libtdevnc-425e24196b7de15875d08c94c5ff59a6a3642654.tar.gz libtdevnc-425e24196b7de15875d08c94c5ff59a6a3642654.zip |
Fix building in C89 mode
FIXME: this should probably be refactored into a common header.
Diffstat (limited to 'libvncserver')
-rw-r--r-- | libvncserver/scale.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libvncserver/scale.c b/libvncserver/scale.c index 3ca76dc..2325dc3 100644 --- a/libvncserver/scale.c +++ b/libvncserver/scale.c @@ -66,7 +66,18 @@ (double) ((int) (x)) : (double) ((int) (x) + 1) ) #define FLOOR(x) ( (double) ((int) (x)) ) -static inline int pad4(int value) +#ifdef WIN32 +#define InlineX __inline +#else +# ifndef __STRICT_ANSI__ +# define InlineX inline +# else +# define InlineX +# endif +#endif + + +static InlineX int pad4(int value) { int remainder = value & 3; if (!remainder) return value; |