Fix building in C89 mode

FIXME: this should probably be refactored into a common header.
pull/3/head
Christian Beier 7 years ago
parent 3a9e3601be
commit 425e24196b
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -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;

Loading…
Cancel
Save