From 16ca196b5adc4afae48b82abbf9161ca92df4873 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Sun, 17 Dec 2017 00:20:07 +0300 Subject: Fixed build on CLang 3.8.0 on Linux --- utils/adlmidi-2/midiplay.cc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'utils/adlmidi-2/midiplay.cc') diff --git a/utils/adlmidi-2/midiplay.cc b/utils/adlmidi-2/midiplay.cc index 1d5e249..c0f0f2e 100644 --- a/utils/adlmidi-2/midiplay.cc +++ b/utils/adlmidi-2/midiplay.cc @@ -147,7 +147,12 @@ xInput Input; #endif #ifdef SUPPORT_VIDEO_OUTPUT -class UIfontBase {}; +class UIfontBase +{ +public: + explicit UIfontBase() {} + virtual ~UIfontBase() {} +}; static unsigned UnicodeToASCIIapproximation(unsigned n) { return n; @@ -1411,11 +1416,12 @@ static void SendStereoAudio(unsigned long count, short *samples) static void TidyupAndExit(int sig) { - if((sig == SIGINT) - #ifdef __DJGPP__ - || (sig == SIGQUIT) - #endif - ) + bool hookSignal = false; + hookSignal |= (sig == SIGINT); + #ifdef __DJGPP__ + hookSignal |= (sig == SIGQUIT) + #endif + if(hookSignal) { UI.ShowCursor(); UI.Color(7); -- cgit v1.2.3