mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Define floorf if system doesn't have it (follow up for 22c48761
)
floorf is checked in config.m4
This commit is contained in:
parent
26656684ea
commit
32e3d7b99e
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue