From 9774c9306a64613d6cd835e14ce2b72892b46e70 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 9 Nov 2016 13:30:37 -0800 Subject: [PATCH] workaround missing PAGE_SIZE --- libs/core/core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/core/core.cpp b/libs/core/core.cpp index 574b73f0..909fb196 100644 --- a/libs/core/core.cpp +++ b/libs/core/core.cpp @@ -209,6 +209,12 @@ namespace pxt { return bytecode[17] * 2; } +#ifndef PAGE_SIZE + +#define PAGE_SIZE 1 + +#endif + //% uint32_t afterProgramPage() { uint32_t ptr = (uint32_t)&bytecode[0];