diff options
Diffstat (limited to 'source/blender/blenkernel/intern/unit.c')
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index 11a39752391..a26b579f5e5 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -29,12 +29,14 @@ #include <ctype.h> #include <string.h> #include <assert.h> -#include "BKE_unit.h" +#include "BLI_sys_types.h" #include "BLI_math.h" #include "BLI_string.h" #include "BLI_string_utf8.h" +#include "BKE_unit.h" /* own include */ + #ifdef WIN32 # include "BLI_winstuff.h" #endif @@ -421,7 +423,7 @@ static size_t unit_as_string(char *str, int len_max, double value, int prec, bUn /* Used for drawing number buttons, try keep fast. * Return the length of the generated string. */ -size_t bUnit_AsString(char *str, int len_max, double value, int prec, int system, int type, int split, int pad) +size_t bUnit_AsString(char *str, int len_max, double value, int prec, int system, int type, int split, bool pad) { bUnitCollection *usys = unit_get_system(system, type); |