File tree Expand file tree Collapse file tree 3 files changed +0
-43
lines changed Expand file tree Collapse file tree 3 files changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,6 @@ if test "$PHP_GD" != "no"; then
213
213
libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \
214
214
libgd/gd_bmp.c libgd/gd_tga.c"
215
215
216
- dnl check for fabsf and floorf which are available since C99
217
- AC_CHECK_FUNCS ( fabsf floorf )
218
-
219
216
dnl These are always available with bundled library
220
217
AC_DEFINE ( HAVE_GD_BUNDLED , 1 , [ ] )
221
218
AC_DEFINE ( HAVE_GD_PNG , 1 , [ ] )
Original file line number Diff line number Diff line change 8
8
9
9
#include "php.h"
10
10
11
- #ifdef _MSC_VER
12
- # if _MSC_VER >= 1300
13
- /* in MSVC.NET these are available but only for __cplusplus and not _MSC_EXTENSIONS */
14
- # if !defined(_MSC_EXTENSIONS ) && defined(__cplusplus )
15
- # define HAVE_FABSF 1
16
- extern float fabsf (float x );
17
- # define HAVE_FLOORF 1
18
- extern float floorf (float x );
19
- # endif /*MSVC.NET */
20
- # endif /* MSC */
21
- #endif
22
- #ifndef HAVE_FABSF
23
- # define HAVE_FABSF 0
24
- #endif
25
- #ifndef HAVE_FLOORF
26
- # define HAVE_FLOORF 0
27
- #endif
28
- #if HAVE_FABSF == 0
29
- /* float fabsf(float x); */
30
- # ifndef fabsf
31
- # define fabsf (x ) ((float)(fabs(x)))
32
- # endif
33
- #endif
34
- #if HAVE_FLOORF == 0
35
- # ifndef floorf
36
- /* float floorf(float x);*/
37
- # define floorf (x ) ((float)(floor(x)))
38
- # endif
39
- #endif
40
-
41
11
#ifdef _OSD_POSIX /* BS2000 uses the EBCDIC char set instead of ASCII */
42
12
#define CHARSET_EBCDIC
43
13
#define __attribute__ (any ) /*nothing */
Original file line number Diff line number Diff line change 67
67
# include <emmintrin.h>
68
68
#endif
69
69
70
- #ifndef HAVE_FLOORF
71
- # define HAVE_FLOORF 0
72
- #endif
73
- #if HAVE_FLOORF == 0
74
- # ifndef floorf
75
- /* float floorf(float x);*/
76
- # define floorf (x ) ((float)(floor(x)))
77
- # endif
78
- #endif
79
-
80
70
#ifndef MIN
81
71
#define MIN (a ,b ) ((a)<(b)?(a):(b))
82
72
#endif
You can’t perform that action at this time.
0 commit comments