From 8bfec2b53822e2b62c4577b32e0beae398a16297 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 10 Mar 2014 13:27:02 +0000 Subject: Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h. MICROPY_ENABLE_FLOAT is automatically set in mpconfig.h if MICROPY_FLOAT_IMPL is set to a non-zero value. --- py/objfloat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'py/objfloat.c') diff --git a/py/objfloat.c b/py/objfloat.c index 5b953f05e..91d669ad5 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -12,8 +12,9 @@ #include "runtime0.h" #if MICROPY_ENABLE_FLOAT + #if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT -#include "format-float.h" +#include "formatfloat.h" #endif mp_obj_t mp_obj_new_float(mp_float_t value); @@ -120,4 +121,4 @@ mp_obj_t mp_obj_float_binary_op(int op, mp_float_t lhs_val, mp_obj_t rhs_in) { return mp_obj_new_float(lhs_val); } -#endif +#endif // MICROPY_ENABLE_FLOAT -- cgit v1.2.3