diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2017-11-29 16:53:11 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2017-11-29 16:53:11 +0100 |
commit | f166ea9c09df1824862589f2938ac0779661c8f6 (patch) | |
tree | 5ad825b3c6d2ce0a7d021e65f403183540bd8ac5 /ext/gd/libgd/gd_interpolation.c | |
parent | 39d1818bd311119ca8ff549da10b4b58dea2ef53 (diff) | |
parent | 32e3d7b99e5f37d54d47bb385ef8d57c049b030a (diff) | |
download | php-git-f166ea9c09df1824862589f2938ac0779661c8f6.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Define floorf if system doesn't have it (follow up for 22c48761)
Diffstat (limited to 'ext/gd/libgd/gd_interpolation.c')
-rw-r--r-- | ext/gd/libgd/gd_interpolation.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index 07eefd6488..2a2479c912 100644 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@ -66,6 +66,16 @@ TODO: # 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 |