summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfloat.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-10 13:27:02 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-10 13:27:02 +0000
commit8bfec2b53822e2b62c4577b32e0beae398a16297 (patch)
tree3116ca2b8fdad7c1d3b1221d658f9eea7a6575a3 /py/objfloat.c
parent0a8458c353b60420f17050d819912df9b168d0cb (diff)
downloadmicropython-8bfec2b53822e2b62c4577b32e0beae398a16297.tar.gz
micropython-8bfec2b53822e2b62c4577b32e0beae398a16297.zip
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.
Diffstat (limited to 'py/objfloat.c')
-rw-r--r--py/objfloat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/py/objfloat.c b/py/objfloat.c
index 5b953f05eb..91d669ad58 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