(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

@@ -22,6 +22,8 @@
#include <dlfcn.h>
#include <cxxabi.h>
#include "../../safeguards.h"
/* Macro testing a stack address for valid alignment. */
#if defined(__i386__)

View File

@@ -23,6 +23,8 @@
#include <png.h>
#include "../../safeguards.h"
/**
* Handle pnglib error.
*

View File

@@ -30,6 +30,8 @@
#include <dos.h>
#endif
#include "../../safeguards.h"
#define INCL_WIN
#define INCL_WINCLIPBOARD

View File

@@ -31,6 +31,8 @@
#include <unistd.h>
#endif
#include "../../safeguards.h"
/**
* Unix implementation for the crash logger.
*/

View File

@@ -63,6 +63,8 @@ ULONG __stack = (1024*1024)*2; // maybe not that much is needed actually ;)
#endif
#endif
#include "../../safeguards.h"
bool FiosIsRoot(const char *path)
{
#if !defined(__MORPHOS__) && !defined(__AMIGAOS__)

View File

@@ -24,6 +24,8 @@
#include <windows.h>
#include <signal.h>
#include "../../safeguards.h"
static const uint MAX_SYMBOL_LEN = 512;
static const uint MAX_FRAMES = 64;

View File

@@ -29,6 +29,8 @@
#include <errno.h>
#include <sys/stat.h>
#include "../../safeguards.h"
static bool _has_console;
static bool _cursor_disable = true;
static bool _cursor_visible = true;