Skip to content

Commit

Permalink
Patched to compile on some compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 6, 2017
1 parent 30178a9 commit 4aa9e36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/audio/SDL_audio_c.h
Expand Up @@ -18,6 +18,10 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/

#ifndef SDL_audio_c_h_
#define SDL_audio_c_h_

#include "../SDL_internal.h"

#ifndef DEBUG_CONVERT
Expand Down Expand Up @@ -94,4 +98,6 @@ int SDL_AudioStreamAvailable(SDL_AudioStream *stream);
/* dispose of a stream */
void SDL_FreeAudioStream(SDL_AudioStream *stream);

#endif

/* vi: set ts=4 sw=4 expandtab: */
3 changes: 1 addition & 2 deletions src/audio/SDL_sysaudio.h
Expand Up @@ -26,6 +26,7 @@
#include "SDL_mutex.h"
#include "SDL_thread.h"
#include "../SDL_dataqueue.h"
#include "./SDL_audio_c.h"

/* !!! FIXME: These are wordy and unlocalized... */
#define DEFAULT_OUTPUT_DEVNAME "System audio output device"
Expand All @@ -35,8 +36,6 @@
typedef struct SDL_AudioDevice SDL_AudioDevice;
#define _THIS SDL_AudioDevice *_this

typedef struct SDL_AudioStream SDL_AudioStream;

/* Audio targets should call this as devices are added to the system (such as
a USB headset being plugged in), and should also be called for
for every device found during DetectDevices(). */
Expand Down

0 comments on commit 4aa9e36

Please sign in to comment.