From 7f2b2421daf8e2f355718704086b256d0b3fac16 Mon Sep 17 00:00:00 2001 From: balr0g Date: Mon, 11 Mar 2024 20:31:58 -0400 Subject: bfm/bfm_bd1.h, bfm/bfm_bda.h: const -> constexpr, fixes undefined references when building with -O0 on macOS (#12129) --- src/mame/bfm/bfm_bd1.h | 8 ++++---- src/mame/bfm/bfm_bda.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mame/bfm/bfm_bd1.h b/src/mame/bfm/bfm_bd1.h index 5d21318134d..63e02df7c7d 100644 --- a/src/mame/bfm/bfm_bd1.h +++ b/src/mame/bfm/bfm_bd1.h @@ -37,10 +37,10 @@ protected: virtual void device_post_load() override; private: - static const uint8_t AT_NORMAL = 0x00; - static const uint8_t AT_FLASH = 0x01; - static const uint8_t AT_BLANK = 0x02; - static const uint8_t AT_FLASHED = 0x80; // set when character should be blinked off + static constexpr uint8_t AT_NORMAL = 0x00; + static constexpr uint8_t AT_FLASH = 0x01; + static constexpr uint8_t AT_BLANK = 0x02; + static constexpr uint8_t AT_FLASHED = 0x80; // set when character should be blinked off std::unique_ptr > m_outputs; uint8_t m_port_val; diff --git a/src/mame/bfm/bfm_bda.h b/src/mame/bfm/bfm_bda.h index cea0da23c06..fc008cbdb61 100644 --- a/src/mame/bfm/bfm_bda.h +++ b/src/mame/bfm/bfm_bda.h @@ -34,10 +34,10 @@ protected: virtual void device_post_load() override; private: - static const uint8_t AT_NORMAL = 0x00; - static const uint8_t AT_FLASH = 0x01; - static const uint8_t AT_BLANK = 0x02; - static const uint8_t AT_FLASHED = 0x80; // set when character should be blinked off + static constexpr uint8_t AT_NORMAL = 0x00; + static constexpr uint8_t AT_FLASH = 0x01; + static constexpr uint8_t AT_BLANK = 0x02; + static constexpr uint8_t AT_FLASHED = 0x80; // set when character should be blinked off std::unique_ptr > m_outputs; std::unique_ptr > m_brightness; -- cgit v1.2.3