+ check for lrintf() and fallback on rint().
dnl Check for system libs needed
need_libc=false
-AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r)
+AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf)
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof lseek)
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
+#include <vlc/vlc.h>
#include "bezier.hpp"
#include <math.h>
-#ifdef sun
-# include "solaris_specific.h" // for lrintf
-#endif
+#ifndef HAVE_LRINTF
+# define lrintf(a) (int)rint(a)
+#endif
Bezier::Bezier( intf_thread_t *p_intf, const vector<float> &rAbscissas,
const vector<float> &rOrdinates, Flag_t flag )
else
return 1;
}
-