summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfloat.c
diff options
context:
space:
mode:
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