DS: Only disable forbidden symbols when necessary

This commit is contained in:
Cameron Cawley 2018-04-07 17:45:47 +01:00 committed by Adrian Frühwirth
parent fc00f80e7d
commit 925025ec54
4 changed files with 12 additions and 5 deletions

View file

@ -68,8 +68,9 @@
// - Try discworld?
#define FORBIDDEN_SYMBOL_ALLOW_ALL
// Allow use of stuff in <nds.h>
#define FORBIDDEN_SYMBOL_EXCEPTION_printf
#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
#include <nds.h>

View file

@ -23,7 +23,9 @@
// Allow use of stuff in <time.h>
#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
#define FORBIDDEN_SYMBOL_ALLOW_ALL
// Allow use of stuff in <nds.h>
#define FORBIDDEN_SYMBOL_EXCEPTION_printf
#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
#include "common/scummsys.h"
#include "common/system.h"

View file

@ -24,7 +24,9 @@
#ifndef _OSYSTEM_DS_H_
#define _OSYSTEM_DS_H_
#define FORBIDDEN_SYMBOL_ALLOW_ALL
// Allow use of stuff in <nds.h>
#define FORBIDDEN_SYMBOL_EXCEPTION_printf
#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
#include "backends/base-backend.h"
#include "common/events.h"

View file

@ -20,7 +20,9 @@
*
*/
#define FORBIDDEN_SYMBOL_ALLOW_ALL
// Allow use of stuff in <nds.h>
#define FORBIDDEN_SYMBOL_EXCEPTION_printf
#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
#include "common/scummsys.h"