summaryrefslogtreecommitdiffstatshomepage
path: root/py/formatfloat.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/formatfloat.h')
-rw-r--r--py/formatfloat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/formatfloat.h b/py/formatfloat.h
index 1eb2c1e46f..0196034471 100644
--- a/py/formatfloat.h
+++ b/py/formatfloat.h
@@ -26,6 +26,10 @@
#ifndef __MICROPY_INCLUDED_PY_FORMATFLOAT_H__
#define __MICROPY_INCLUDED_PY_FORMATFLOAT_H__
-int mp_format_float(float f, char *buf, size_t bufSize, char fmt, int prec, char sign);
+#include "py/mpconfig.h"
+
+#if MICROPY_PY_BUILTINS_FLOAT
+int mp_format_float(mp_float_t f, char *buf, size_t bufSize, char fmt, int prec, char sign);
+#endif
#endif // __MICROPY_INCLUDED_PY_FORMATFLOAT_H__