com php-src: Define floorf if system doesn't have it (follow up for 22c48761): ext/gd/libgd/gd_interpolation.c
| From: | Christoph Michael Becker | Date: | Wed, 29 Nov 2017 15:46:47 +0000 |
| Subject: | com php-src: Define floorf if system doesn't have it (follow up for 22c48761): ext/gd/libgd/gd_interpolation.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100441@lists.php.net to get a copy of this message | ||
Commit: 32e3d7b99e5f37d54d47bb385ef8d57c049b030a
Author: Lior Kaplan <kaplanlior@gmail.com> Wed, 29 Nov 2017 13:45:21 +0200
Committer: Christoph M. Becker <cmbecker69@gmx.de> Wed, 29 Nov 2017 16:46:47 +0100
Parents: 26656684eacfaf386fcecc461ab49b9b6086c635
Branches: PHP-7.0 PHP-7.1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=32e3d7b99e5f37d54d47bb385ef8d57c049b030a
Log:
Define floorf if system doesn't have it (follow up for 22c48761)
floorf is checked in config.m4
Changed paths:
M ext/gd/libgd/gd_interpolation.c
Diff:
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c
index 07eefd6..2a2479c 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