From 22d31472a27fbe6e4ce7daf1f889e68a0c432489 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Feb 2011 13:33:16 -0800 Subject: [PATCH] Fixed bug 1021 (misplaced HAVE_SIGNAL_H condition in playmus.c and playwave.c) Ozkan Sezer 2010-10-08 01:45:34 PDT The HAVE_SIGNAL_H dependent signal.h includes in playmus.c and playwave.c are misplaced, because SDL_config.h is not included at that point and this causes signal.h to be never included. Moving it after the SDL.h and SDL_mixer.h includes fixes the issue, like in the following. --- playmus.c | 7 ++++--- playwave.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/playmus.c b/playmus.c index 98a99eb5..5809bbba 100644 --- a/playmus.c +++ b/playmus.c @@ -26,9 +26,6 @@ #include #include -#ifdef HAVE_SIGNAL_H -#include -#endif #ifdef unix #include #endif @@ -36,6 +33,10 @@ #include "SDL.h" #include "SDL_mixer.h" +#ifdef HAVE_SIGNAL_H +#include +#endif + static int audio_open = 0; static Mix_Music *music = NULL; diff --git a/playwave.c b/playwave.c index 79e3c7b6..2f1dde50 100644 --- a/playwave.c +++ b/playwave.c @@ -26,9 +26,6 @@ #include #include -#ifdef HAVE_SIGNAL_H -#include -#endif #ifdef unix #include #endif @@ -36,6 +33,10 @@ #include "SDL.h" #include "SDL_mixer.h" +#ifdef HAVE_SIGNAL_H +#include +#endif + /* * rcg06132001 various mixer tests. Define the ones you want.