(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
#include "allegro_s.h"
|
||||
#include <allegro.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FSoundDriver_Allegro iFSoundDriver_Allegro;
|
||||
/** The stream we are writing too */
|
||||
static AUDIOSTREAM *_stream = NULL;
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#undef Rect
|
||||
#undef Point
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FSoundDriver_Cocoa iFSoundDriver_Cocoa;
|
||||
|
||||
static AudioUnit _outputAudioUnit;
|
||||
|
||||
@@ -12,5 +12,7 @@
|
||||
#include "../stdafx.h"
|
||||
#include "null_s.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/** The factory for the null sound driver. */
|
||||
static FSoundDriver_Null iFSoundDriver_Null;
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "sdl_s.h"
|
||||
#include <SDL.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/** Factory for the SDL sound driver. */
|
||||
static FSoundDriver_SDL iFSoundDriver_SDL;
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FSoundDriver_Win32 iFSoundDriver_Win32;
|
||||
|
||||
static HWAVEOUT _waveout;
|
||||
|
||||
Reference in New Issue
Block a user