Skip to content

Commit

Permalink
Define floorf if system doesn't have it (follow up for 22c4876)
Browse files Browse the repository at this point in the history
floorf is checked in config.m4
  • Loading branch information
kaplanlior authored and cmb69 committed Nov 29, 2017
1 parent 2665668 commit 32e3d7b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ext/gd/libgd/gd_interpolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
# include <emmintrin.h>
#endif

#ifndef HAVE_FLOORF
# define HAVE_FLOORF 0
#endif
#if HAVE_FLOORF == 0
# ifndef floorf
/* float floorf(float x);*/
# define floorf(x) ((float)(floor(x)))
# endif
#endif

#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
Expand Down

0 comments on commit 32e3d7b

Please sign in to comment.