From fd0975b96b16d96010dce439af9620d3dfb65426 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Nov 2021 20:40:20 -0400 Subject: sim: arm/bfin/rx: undefine page size from system headers Some targets (like cygwin) will export page size defines that clash with our local usage here. Undefine the system one to fix building for these targets. --- sim/rx/mem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/rx') diff --git a/sim/rx/mem.h b/sim/rx/mem.h index a4c7455..15bb557 100644 --- a/sim/rx/mem.h +++ b/sim/rx/mem.h @@ -37,6 +37,8 @@ void init_mem (void); void mem_usage_stats (void); unsigned long mem_usage_cycles (void); +#undef PAGE_SIZE /* Cleanup system headers. */ + /* rx_mem_ptr returns a pointer which is valid as long as the address requested remains within the same page. */ #define PAGE_BITS 12 -- cgit v1.1