aboutsummaryrefslogtreecommitdiff
path: root/src/midiplay/adlmidiplay.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-10-19 19:36:05 +0300
committerWohlstand <admin@wohlnet.ru>2017-10-19 19:36:05 +0300
commite95cde9fea4f9daf3e19492021b8a153acae0404 (patch)
treee7f05bac19b6209a4a5ade8328d394d2b31d2d32 /src/midiplay/adlmidiplay.cpp
parent9177c69baea368dd3561249372995bd7a128358a (diff)
downloadlibADLMIDI-e95cde9fea4f9daf3e19492021b8a153acae0404.tar.gz
libADLMIDI-e95cde9fea4f9daf3e19492021b8a153acae0404.tar.bz2
libADLMIDI-e95cde9fea4f9daf3e19492021b8a153acae0404.zip
Attempt to fix Windows build of demo MIDI player
(Issue #26)
Diffstat (limited to 'src/midiplay/adlmidiplay.cpp')
-rw-r--r--src/midiplay/adlmidiplay.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/midiplay/adlmidiplay.cpp b/src/midiplay/adlmidiplay.cpp
index f2781f2..7c8766d 100644
--- a/src/midiplay/adlmidiplay.cpp
+++ b/src/midiplay/adlmidiplay.cpp
@@ -72,7 +72,12 @@ static void printError(const char *err)
static int stop = 0;
static void sighandler(int dum)
{
- if((dum == SIGINT) || (dum == SIGHUP) || (dum == SIGTERM))
+ if((dum == SIGINT)
+ || (dum == SIGTERM)
+ #ifndef _WIN32
+ || (dum == SIGHUP)
+ #endif
+ )
stop = 1;
}
@@ -265,8 +270,10 @@ int main(int argc, char **argv)
}
signal(SIGINT, sighandler);
- signal(SIGHUP, sighandler);
signal(SIGTERM, sighandler);
+ #ifndef _WIN32
+ signal(SIGHUP, sighandler);
+ #endif
if(!recordWave)
{