summaryrefslogtreecommitdiffstatshomepage
path: root/py/strtonum.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/strtonum.c')
-rw-r--r--py/strtonum.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/py/strtonum.c b/py/strtonum.c
index e83b9751dc..4a62756512 100644
--- a/py/strtonum.c
+++ b/py/strtonum.c
@@ -5,12 +5,13 @@
#include <stdlib.h>
#include "misc.h"
+#include "strtonum.h"
#include "mpconfig.h"
#include "qstr.h"
#include "nlr.h"
#include "obj.h"
-long strtonum(const char *restrict s, int base) {
+long mp_strtonum(const char *restrict s, int base) {
int c, neg = 0;
const char *p = s;
char *num;
@@ -89,7 +90,7 @@ value_error:
#else /* defined(UNIX) */
-long strtonum(const char *restrict s, int base) {
+long mp_strtonum(const char *restrict s, int base) {
// TODO port strtol to stm
return 0;
}