Patched to compile on some compilers.
authorRyan C. Gordon
Thu, 05 Jan 2017 19:45:57 -0500
changeset 10758e0fd49c1a5b7
parent 10757 329d6d46fb90
child 10759 d698fdebebfe
Patched to compile on some compilers.
src/audio/SDL_audio_c.h
src/audio/SDL_sysaudio.h
     1.1 --- a/src/audio/SDL_audio_c.h	Thu Jan 05 19:29:38 2017 -0500
     1.2 +++ b/src/audio/SDL_audio_c.h	Thu Jan 05 19:45:57 2017 -0500
     1.3 @@ -18,6 +18,10 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 +
     1.8 +#ifndef SDL_audio_c_h_
     1.9 +#define SDL_audio_c_h_
    1.10 +
    1.11  #include "../SDL_internal.h"
    1.12  
    1.13  #ifndef DEBUG_CONVERT
    1.14 @@ -94,4 +98,6 @@
    1.15  /* dispose of a stream */
    1.16  void SDL_FreeAudioStream(SDL_AudioStream *stream);
    1.17  
    1.18 +#endif
    1.19 +
    1.20  /* vi: set ts=4 sw=4 expandtab: */
     2.1 --- a/src/audio/SDL_sysaudio.h	Thu Jan 05 19:29:38 2017 -0500
     2.2 +++ b/src/audio/SDL_sysaudio.h	Thu Jan 05 19:45:57 2017 -0500
     2.3 @@ -26,6 +26,7 @@
     2.4  #include "SDL_mutex.h"
     2.5  #include "SDL_thread.h"
     2.6  #include "../SDL_dataqueue.h"
     2.7 +#include "./SDL_audio_c.h"
     2.8  
     2.9  /* !!! FIXME: These are wordy and unlocalized... */
    2.10  #define DEFAULT_OUTPUT_DEVNAME "System audio output device"
    2.11 @@ -35,8 +36,6 @@
    2.12  typedef struct SDL_AudioDevice SDL_AudioDevice;
    2.13  #define _THIS   SDL_AudioDevice *_this
    2.14  
    2.15 -typedef struct SDL_AudioStream SDL_AudioStream;
    2.16 -
    2.17  /* Audio targets should call this as devices are added to the system (such as
    2.18     a USB headset being plugged in), and should also be called for
    2.19     for every device found during DetectDevices(). */