summaryrefslogtreecommitdiffstatshomepage
path: root/windows/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-07 13:20:06 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-07 13:20:06 +0100
commit6c6f9d6782bcb35018dac46900a6c836e3746e0e (patch)
tree30893420f60f7b08e97c29fce1f74da99c35cc4c /windows/main.c
parent10072b72a56e0a0d5e612421a9234aee507253ec (diff)
downloadmicropython-6c6f9d6782bcb35018dac46900a6c836e3746e0e.tar.gz
micropython-6c6f9d6782bcb35018dac46900a6c836e3746e0e.zip
windows: Make it compile with latest changes to py core.
Diffstat (limited to 'windows/main.c')
-rw-r--r--windows/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/windows/main.c b/windows/main.c
index 59174d73df..98d293161a 100644
--- a/windows/main.c
+++ b/windows/main.c
@@ -59,7 +59,7 @@ static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind
printf("----------------\n");
*/
- mp_obj_t module_fun = mp_compile(pn, source_name, is_repl);
+ mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, is_repl);
if (module_fun == mp_const_none) {
// compile error
@@ -230,9 +230,3 @@ int main(int argc, char **argv) {
//printf("total bytes = %d\n", m_get_total_bytes_allocated());
return 0;
}
-
-// for sqrt
-#include <math.h>
-machine_float_t machine_sqrt(machine_float_t x) {
- return sqrt(x);
-}