summaryrefslogtreecommitdiffstats
path: root/libvncserver/scale.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/scale.c')
-rw-r--r--libvncserver/scale.c13
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;