(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:
@@ -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. */
|
||||
|
@@ -131,6 +131,8 @@ static void CloseWindowsConsoleThread()
|
||||
|
||||
#endif
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
|
||||
static void *_dedicated_video_mem;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -26,6 +26,8 @@
|
||||
#include "sdl_v.h"
|
||||
#include <SDL.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
static FVideoDriver_SDL iFVideoDriver_SDL;
|
||||
|
||||
static SDL_Surface *_sdl_screen;
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user