• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision3805ad41608ed51081d916a1b494688d5d3e7eac (tree)
Zeit2017-04-10 12:11:39
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][PC9801][X1][WIN32] Fix FTBFS with MinGW.

Ändern Zusammenfassung

Diff

--- a/source/src/vm/pc9801/display.cpp
+++ b/source/src/vm/pc9801/display.cpp
@@ -130,7 +130,8 @@ void DISPLAY::initialize()
130130 tvram[0x3fee] = 8;
131131 }
132132 #ifndef HAS_UPD4990A
133- dll_cur_time_t cur_time;
133+ //dll_cur_time_t cur_time;
134+ cur_time_t cur_time;
134135 get_host_time(&cur_time);
135136 tvram[0x3ffe] = TO_BCD(cur_time.year);
136137 #endif
--- a/source/src/vm/x1/x1.cpp
+++ b/source/src/vm/x1/x1.cpp
@@ -419,7 +419,8 @@ VM::VM(EMU* parent_emu) : emu(parent_emu)
419419 uint8_t *rom = cpu_sub->get_rom_ptr();
420420 sub->rom_crc32 = get_crc32(rom, 0x800); // 2KB
421421 if(rom[0x23] == 0xb9 && rom[0x24] == 0x35 && rom[0x25] == 0xb1) {
422- dll_cur_time_t cur_time;
422+ //dll_cur_time_t cur_time;
423+ cur_time_t cur_time;
423424 get_host_time(&cur_time);
424425 rom[0x26] = TO_BCD(cur_time.year);
425426 }
Show on old repository browser