(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:
@@ -16,6 +16,8 @@
|
||||
#include "allegro_m.h"
|
||||
#include <allegro.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FMusicDriver_Allegro iFMusicDriver_Allegro;
|
||||
static MIDI *_midi = NULL;
|
||||
|
||||
|
@@ -16,6 +16,8 @@
|
||||
/* BeOS System Includes */
|
||||
#include <MidiSynthFile.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/** The file we're playing. */
|
||||
static BMidiSynthFile midiSynthFile;
|
||||
|
||||
|
@@ -28,6 +28,8 @@
|
||||
#undef Rect
|
||||
#undef Point
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FMusicDriver_Cocoa iFMusicDriver_Cocoa;
|
||||
|
||||
|
||||
|
@@ -27,6 +27,8 @@
|
||||
#include <dmusicc.h>
|
||||
#include <dmusicf.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FMusicDriver_DMusic iFMusicDriver_DMusic;
|
||||
|
||||
/** the direct music object manages buffers and ports */
|
||||
|
@@ -25,6 +25,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
#ifndef EXTERNAL_PLAYER
|
||||
/** The default external midi player. */
|
||||
#define EXTERNAL_PLAYER "timidity"
|
||||
|
@@ -26,6 +26,8 @@
|
||||
#include <pspaudiolib.h>
|
||||
#endif /* PSP */
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/** The state of playing. */
|
||||
enum MidiState {
|
||||
MIDI_STOPPED = 0,
|
||||
|
@@ -12,5 +12,7 @@
|
||||
#include "../stdafx.h"
|
||||
#include "null_m.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/** The factory for the music player that does nothing. */
|
||||
static FMusicDriver_Null iFMusicDriver_Null;
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <os2.h>
|
||||
#include <os2me.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/**********************
|
||||
* OS/2 MIDI PLAYER
|
||||
**********************/
|
||||
|
@@ -38,6 +38,8 @@
|
||||
#undef Rect
|
||||
#undef Point
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FMusicDriver_QtMidi iFMusicDriver_QtMidi;
|
||||
|
||||
|
||||
|
@@ -15,6 +15,8 @@
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static struct {
|
||||
bool stop_song;
|
||||
bool terminate;
|
||||
|
Reference in New Issue
Block a user