Read this post http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=305723 and made these [adapted to 149] changes and now SDLMAME 149 (SUBTARGET=tiny) compiles and works:
/source/makefile: comment out 502 and 503 # -Wall \ # -Wcast-align \
/source/src/emu/emualloc.c: comment out 300 and 301 // if (LOG_ALLOCS) // fprintf(stderr, "#%06d, add %d bytes (%s:%d)\n", (UINT32)entry->m_id, static_cast(entry->m_size), entry->m_file, (int)entry->m_line);
295: change memory_entry *entry = memory_entry::find(item.m_ptr); to resource_pool_item *entry = resource_pool::find(item.m_ptr);
297: change entry = memory_entry::find(reinterpret_cast(item.m_ptr) - sizeof(size_t)); to entry = resource_pool::find(reinterpret_cast(item.m_ptr) - sizeof(size_t));
Build with "make NOASM=1 NOWERROR=1"
It is a slide-show though so I am sticking with 134.
PS: The forum seems to be gobbling up the < U I N T 8 * > needed after reinterpret_cast on line 297 above. Use the same < > syntax as the original.
|