(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:
rubidium
2014-04-23 20:13:33 +00:00
parent 287ecd1582
commit 0463dbdc9e
402 changed files with 873 additions and 1 deletions

View File

@@ -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;

View File

@@ -30,6 +30,8 @@
#undef Rect
#undef Point
#include "../safeguards.h"
static FSoundDriver_Cocoa iFSoundDriver_Cocoa;
static AudioUnit _outputAudioUnit;

View File

@@ -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;

View File

@@ -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;

View File

@@ -20,6 +20,8 @@
#include <windows.h>
#include <mmsystem.h>
#include "../safeguards.h"
static FSoundDriver_Win32 iFSoundDriver_Win32;
static HWAVEOUT _waveout;