mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Merge branch 'PHP-5.6'
* PHP-5.6: Add to NEWS Fix for bug #68114 (Build fails on OS X due to undefined symbols)
This commit is contained in:
commit
07e285d880
1 changed files with 6 additions and 1 deletions
|
@ -58,12 +58,17 @@ dnl
|
||||||
AC_CACHE_CHECK([whether whether compiler supports Decimal32/64/128 types], ac_cv_decimal_fp_supported,[
|
AC_CACHE_CHECK([whether whether compiler supports Decimal32/64/128 types], ac_cv_decimal_fp_supported,[
|
||||||
AC_TRY_RUN( [
|
AC_TRY_RUN( [
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
typedef float dec32 __attribute__((mode(SD)));
|
typedef float dec32 __attribute__((mode(SD)));
|
||||||
dec32 k = 99.49f;
|
dec32 k = 99.49f;
|
||||||
double d2 = (double)k;
|
double d2 = (double)k;
|
||||||
return 0;
|
const char *check_str = "99.49";
|
||||||
|
char print_str[32];
|
||||||
|
|
||||||
|
snprintf(print_str, 32, "%f", d2);
|
||||||
|
return memcmp(print_str, check_str, 5);
|
||||||
}
|
}
|
||||||
],[
|
],[
|
||||||
ac_cv_decimal_fp_supported=yes
|
ac_cv_decimal_fp_supported=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue