dorkster/flare-engine — pull request #5 by stefanbeller (2014-06-14 14:49:23+00:00)
Title: Fix compile a error

I am compiling with gcc 4.8.2 here and this error comes up
/home/sb/OSS/flare-engine/src/UtilsParsing.cpp: In function ‘int parse_duration(const string&)’:
/home/sb/OSS/flare-engine/src/UtilsParsing.cpp:58:51: error: could not convert ‘(((float)((int)MAX_FRAMES_PER_SEC * val) / 1.0e+3f) + 5.0e-1f)’ from ‘float’ to ‘FPoint’
val = floor(((val*MAX_FRAMES_PER_SEC) / 1000.f) + 0.5f);

The UtilsParsing.cpp file included the UtilsParsing.h header file, which
includes Utils.h where floor() seems to be defined for FPoint.

So we still need to include the math.h which works for the floats
we're using here.