(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

@@ -16,6 +16,8 @@
#include "allegro_m.h"
#include <allegro.h>
#include "../safeguards.h"
static FMusicDriver_Allegro iFMusicDriver_Allegro;
static MIDI *_midi = NULL;

View File

@@ -16,6 +16,8 @@
/* BeOS System Includes */
#include <MidiSynthFile.h>
#include "../safeguards.h"
/** The file we're playing. */
static BMidiSynthFile midiSynthFile;

View File

@@ -28,6 +28,8 @@
#undef Rect
#undef Point
#include "../safeguards.h"
static FMusicDriver_Cocoa iFMusicDriver_Cocoa;

View File

@@ -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 */

View File

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

View File

@@ -26,6 +26,8 @@
#include <pspaudiolib.h>
#endif /* PSP */
#include "../safeguards.h"
/** The state of playing. */
enum MidiState {
MIDI_STOPPED = 0,

View File

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

View File

@@ -21,6 +21,8 @@
#include <os2.h>
#include <os2me.h>
#include "../safeguards.h"
/**********************
* OS/2 MIDI PLAYER
**********************/

View File

@@ -38,6 +38,8 @@
#undef Rect
#undef Point
#include "../safeguards.h"
static FMusicDriver_QtMidi iFMusicDriver_QtMidi;

View File

@@ -15,6 +15,8 @@
#include <windows.h>
#include <mmsystem.h>
#include "../safeguards.h"
static struct {
bool stop_song;
bool terminate;