From b1a5b08b1ae9c657312d0393e7b069c25e0e4283 Mon Sep 17 00:00:00 2001 From: Peter Schlaile Date: Fri, 26 Jun 2009 19:40:28 +0000 Subject: [PATCH] == Sequencer == Small fix by jms: rint() isn't available on win32... (hmm, rint() is conforming to C99, that is _really_ strange...) --- source/blender/src/sequence.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/src/sequence.c b/source/blender/src/sequence.c index 315745bed57..2183dd655be 100644 --- a/source/blender/src/sequence.c +++ b/source/blender/src/sequence.c @@ -73,6 +73,12 @@ #ifdef WIN32 #define snprintf _snprintf + +static double rint(double x) +{ + return floor(x < 0.0 ? x - 0.5 : x + 0.5); +} + #endif int seqrectx, seqrecty;