Skip to content

0.279: compilation error in dirtc.h #14012

@0-wiz-0

Description

@0-wiz-0

While updating mame in pkgsrc from 0.278 to 0.279, I see a new compilation error on NetBSD 11.99.1/x86_64 (gcc 12.5.0):

In file included from ../../../../../src/devices/machine/macseconds.cpp:11:
../../../../../src/emu/dirtc.h:44:1: error: expected class-name before '{' token
   44 | {
      | ^
../../../../../src/emu/dirtc.h:47:36: error: 'machine_config' does not name a type
   47 |         device_rtc_interface(const machine_config &mconfig, device_t &device);
      |                                    ^~~~~~~~~~~~~~
../../../../../src/emu/dirtc.h:47:61: error: 'device_t' has not been declared
   47 |         device_rtc_interface(const machine_config &mconfig, device_t &device);
      |                                                             ^~~~~~~~
../../../../../src/emu/dirtc.h:54:37: error: 'system_time' does not name a type
   54 |         void set_current_time(const system_time &systime);
      |                                     ^~~~~~~~~~~
../../../../../src/emu/dirtc.h:59:16: error: 'u8' does not name a type
   59 |         static u8 convert_to_bcd(int val);
      |                ^~
../../../../../src/emu/dirtc.h:60:35: error: 'u8' has not been declared
   60 |         static int bcd_to_integer(u8 val);
      |                                   ^~
../../../../../src/emu/dirtc.h:83:9: error: 'device_interface_enumerator' does not name a type
   83 | typedef device_interface_enumerator<device_rtc_interface> rtc_interface_enumerator;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

I see that the file hasn't changed for a long time, so I'm not sure what causes this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions