lets just fal back to "stoopid" mode rounding for non-lround platforms

SVN revision: 64033
This commit is contained in:
Carsten Haitzler 2011-10-13 06:15:28 +00:00
parent ee5446fb13
commit ff8767dbb4
2 changed files with 12 additions and 0 deletions

View File

@ -505,6 +505,12 @@ case "$host_os" in
esac
AC_SUBST(dlopen_libs)
res=no
AC_CHECK_LIB(m, lround, res=yes, res=no)
if test "x$res" = "xyes"; then
AC_DEFINE(HAVE_LROUND, 1, C99 lround function exists)
fi
SHM_OPEN_LINK=""
AC_MSG_CHECKING([whether shm_open() is present])
LIBS_save=${LIBS}

View File

@ -21,6 +21,12 @@
#include <sys/stat.h>
#include <unistd.h>
#ifndef HAVE_LROUND
// right now i dont care about rendering bugs on platforms without lround
// (e.g. windows/vc++... yay!)
#define lround(x) ((long int)(x + 0.5))
#endif
/* macros needed to log message through eina_log */
extern EAPI int _evas_log_dom_global;
#ifdef _EVAS_DEFAULT_LOG_DOM