Include BLI_math.h instead of math.h.

Silence a warning.
This commit is contained in:
Nathan Letwory
2010-10-21 07:29:15 +00:00
parent 6fc16a6e44
commit ec6b9948ac

View File

@@ -26,11 +26,7 @@
#include <string.h>
#include "BKE_unit.h"
#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include "BLI_math.h"
#include "BLI_winstuff.h"
@@ -687,7 +683,7 @@ void bUnit_ToUnitAltName(char *str, int len_max, char *orig_str, int system, int
found= unit_find_str(orig_str, unit->name_short);
if(found) {
int offset= found - orig_str;
int offset= (int)(found - orig_str);
int len_name= 0;
/* copy everything before the unit */