Bug #2121 » freeciv-3.2.5-sdl2-include.patch
| client/audio.c | ||
|---|---|---|
|
**************************************************************************/
|
||
|
void audio_shutdown(bool play_quit_tag)
|
||
|
{
|
||
|
/* Avoid infinite loop at end of game */
|
||
|
audio_stop();
|
||
|
/* Prevent music-finished callback from starting another looping track
|
||
|
* while exit waits for current audio to drain. */
|
||
|
audio_stop_usage();
|
||
|
if (play_quit_tag) {
|
||
|
audio_play_sound("e_client_quit", NULL, NULL);
|
||
| client/gui-gtk-3.22/gui_main.c | ||
|---|---|---|
|
#include <fc_config.h>
|
||
|
#endif
|
||
|
#ifdef AUDIO_SDL
|
||
|
/* Though it would happily compile without this include,
|
||
|
* it is needed for sound to work.
|
||
|
* It defines "main" macro to rename our main() so that
|
||
|
* it can install SDL's own. */
|
||
|
#if defined(AUDIO_SDL) && !defined(AUDIO_SDL3)
|
||
|
/* SDL2 audio backend requires this include so SDL can rewrite main(). */
|
||
|
#ifdef SDL2_PLAIN_INCLUDE
|
||
|
#include <SDL.h>
|
||
|
#else /* PLAIN_INCLUDE */
|
||
|
#include <SDL2/SDL.h>
|
||
|
#endif /* PLAIN_INCLUDE */
|
||
|
#endif /* AUDIO_SDL */
|
||
|
#endif /* AUDIO_SDL && !AUDIO_SDL3 */
|
||
|
#ifdef HAVE_LOCALE_H
|
||
|
#include <locale.h>
|
||
| client/gui-gtk-4.0/gui_main.c | ||
|---|---|---|
|
#include <fc_config.h>
|
||
|
#endif
|
||
|
#ifdef AUDIO_SDL
|
||
|
/* Though it would happily compile without this include,
|
||
|
* it is needed for sound to work.
|
||
|
* It defines "main" macro to rename our main() so that
|
||
|
* it can install SDL's own. */
|
||
|
#if defined(AUDIO_SDL) && !defined(AUDIO_SDL3)
|
||
|
/* SDL2 audio backend requires this include so SDL can rewrite main(). */
|
||
|
#ifdef SDL2_PLAIN_INCLUDE
|
||
|
#include <SDL.h>
|
||
|
#else /* PLAIN_INCLUDE */
|
||
|
#include <SDL2/SDL.h>
|
||
|
#endif /* PLAIN_INCLUDE */
|
||
|
#endif /* AUDIO_SDL */
|
||
|
#endif /* AUDIO_SDL && !AUDIO_SDL3 */
|
||
|
#ifdef HAVE_LOCALE_H
|
||
|
#include <locale.h>
|
||
| client/gui-qt/gui_main.cpp | ||
|---|---|---|
|
#include <fc_config.h>
|
||
|
#endif
|
||
|
#ifdef AUDIO_SDL
|
||
|
/* Though it would happily compile without this include,
|
||
|
* it is needed for sound to work.
|
||
|
* It defines "main" macro to rename our main() so that
|
||
|
* it can install SDL's own. */
|
||
|
#if defined(AUDIO_SDL) && !defined(AUDIO_SDL3)
|
||
|
/* SDL2 audio backend requires this include so SDL can rewrite main(). */
|
||
|
#ifdef SDL2_PLAIN_INCLUDE
|
||
|
#include <SDL.h>
|
||
|
#else // PLAIN_INCLUDE
|
||
|
#include <SDL2/SDL.h>
|
||
|
#endif // PLAIN_INCLUDE
|
||
|
#endif // AUDIO_SDL
|
||
|
#endif // AUDIO_SDL && !AUDIO_SDL3
|
||
|
#include <stdio.h>
|
||