Branch: Tag:

2017-04-21

2017-04-21 12:27:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Revert "rint/rintf/rintl is part of C99."

MSVC lagged in implementing the C99 standard, and apparently first
started providing these functions in 2013.

This reverts commit de299dab684bfbe9850e56e324bc583662ec0e36.

5527:    exit(0);   ])    + ######################################################################## + MY_CHECK_FUNCTION(rint, + [ + #include <math.h> + #ifdef HAVE_FLOATINGPOINT_H + #include <floatingpoint.h> + #endif +  + #ifdef HAVE_IEEEFP_H + #include <ieeefp.h> + #endif /* HAVE_IEEEFP_H */ + ], [ + #ifdef HAVE_FPSETROUND +  /* Round to nearest */ + #ifndef FP_RN + #define FP_RN 0 + #endif /* FP_RN */ +  fpsetround(FP_RN); + #endif /* HAVE_FPSETROUND */ +  if(rint(0.1) != 0.0 || +  rint(0.6) != 1.0) exit(1); +  exit(0); + ]) +    #############################################################################   MY_CHECK_FUNCTION(GetSystemTimeAsFileTime,   [