forked from enlightenment/efl
parent
3a59f00292
commit
ce2cb9d8bf
|
@ -22,9 +22,11 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifndef HAVE_LROUND
|
#ifndef HAVE_LROUND
|
||||||
// right now i dont care about rendering bugs on platforms without lround
|
/* right now i dont care about rendering bugs on platforms without lround
|
||||||
// (e.g. windows/vc++... yay!)
|
(e.g. windows/vc++... yay!)
|
||||||
#define lround(x) ((long int)(x + (x / (2.0 * abs(x)))))
|
FIXME: http://cgit.freedesktop.org/cairo/tree/src/cairo-misc.c#n487
|
||||||
|
*/
|
||||||
|
#define lround(x) (((x) < 0) ? (long int)ceil((x) - 0.5) : (long int)floor((x) + 0.5))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* macros needed to log message through eina_log */
|
/* macros needed to log message through eina_log */
|
||||||
|
|
Loading…
Reference in New Issue