From f3a61f322230a1e6650eceaacb8d8ce9526dd078 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 17 Jan 2022 17:12:24 -0500 Subject: [PATCH] fix build in old compiler --- src/engine/platform/sound/ymfm/ymfm_opn.h | 2 +- src/gui/gui.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/sound/ymfm/ymfm_opn.h b/src/engine/platform/sound/ymfm/ymfm_opn.h index f4136c731..8d9b42de0 100644 --- a/src/engine/platform/sound/ymfm/ymfm_opn.h +++ b/src/engine/platform/sound/ymfm/ymfm_opn.h @@ -763,7 +763,7 @@ public: protected: // simulate the DAC discontinuity - constexpr int32_t dac_discontinuity(int32_t value) const { return (value < 0) ? (value - 2) : (value + 3); } + int32_t dac_discontinuity(int32_t value) const { return (value < 0) ? (value - 2) : (value + 3); } // internal state uint16_t m_address; // address register diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 848787877..49b8895c3 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3406,7 +3406,9 @@ String getHomeDir() { ret=tempDir; ret+='\\'; #else - getcwd(tempDir,4095); + char* unused=getcwd(tempDir,4095); + char* unused1=unused; // dang it compiler + unused=unused1; ret=tempDir; ret+='/'; #endif