Re: [hatari-devel] Re: Error compiling Hatari on Arch Linux ARM

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 18/08/2019 à 16:52, Christer Solskogen a écrit :
This seems to be the solution:

diff --git a/src/cpu/memory.h b/src/cpu/memory.h
index bc9b1653..ff6a13d9 100644
--- a/src/cpu/memory.h
+++ b/src/cpu/memory.h
@@ -510,7 +510,7 @@ extern addrbank *get_mem_bank_real(uaecptr);

  #ifdef WINUAE_FOR_HATARI
  extern bool memory_region_bus_error ( uaecptr addr );
-extern void memory_map_Standard_RAM ( Uint32 MMU_Bank0_Size , Uint32 MMU_Bank1_Size ); +extern void memory_map_Standard_RAM ( uint32_t MMU_Bank0_Size , uint32_t MMU_Bank1_Size );
  #endif

Hi

I don't know why this only triggers on ARM and not x86, maybe some different paths depending on the compiler.

Uint32 is defined by SDL, it might end as uint32_t internally, but we'd better keep the SDL names (as it is used in several places in Hatari)

Can you try this changes to disasm.c instead :

#include "sysconfig.h"
#include "sysdeps.h"

+#include "main.h"
#include "options_cpu.h"
#include "debug.h"

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/