(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

@@ -27,6 +27,8 @@
#include "allegro_v.h"
#include <allegro.h>
#include "../safeguards.h"
#ifdef _DEBUG
/* Allegro replaces SEGV/ABRT signals meaning that the debugger will never
* be triggered, so rereplace the signals and make the debugger useful. */

View File

@@ -131,6 +131,8 @@ static void CloseWindowsConsoleThread()
#endif
#include "../safeguards.h"
static void *_dedicated_video_mem;

View File

@@ -14,6 +14,8 @@
#include "../blitter/factory.hpp"
#include "null_v.h"
#include "../safeguards.h"
/** Factory for the null video driver. */
static FVideoDriver_Null iFVideoDriver_Null;

View File

@@ -26,6 +26,8 @@
#include "sdl_v.h"
#include <SDL.h>
#include "../safeguards.h"
static FVideoDriver_SDL iFVideoDriver_SDL;
static SDL_Surface *_sdl_screen;

View File

@@ -27,6 +27,8 @@
#include <windows.h>
#include <imm.h>
#include "../safeguards.h"
/* Missing define in MinGW headers. */
#ifndef MAPVK_VK_TO_CHAR
#define MAPVK_VK_TO_CHAR (2)