aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien2011-06-07 00:46:09 +0800
committerJulien2011-06-23 15:11:38 +0800
commit53c4a190fc2337b6f2bec943ca9016f89d8e6f2f (patch)
treea107f4a0d6ad26667621ac9e4802cdabb4770c19
parent7fa3a8bbffc625232cd24252cf501e2c2b7b2a55 (diff)
downloadscummvm-rg350-53c4a190fc2337b6f2bec943ca9016f89d8e6f2f.tar.gz
scummvm-rg350-53c4a190fc2337b6f2bec943ca9016f89d8e6f2f.tar.bz2
scummvm-rg350-53c4a190fc2337b6f2bec943ca9016f89d8e6f2f.zip
COMMON: Add abort() to the list of forbidden symbols
-rw-r--r--common/forbidden.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/forbidden.h b/common/forbidden.h
index 9cba19cf5e..95c1a47d65 100644
--- a/common/forbidden.h
+++ b/common/forbidden.h
@@ -29,7 +29,7 @@
* infrastructure code do not make use of certain "forbidden" APIs, such
* as fopen(), setjmp(), etc.
* This is achieved by re-#defining various symbols to a "garbage"
- * string which then trigers a compiler error.
+ * string which then triggers a compiler error.
*
* Backend files may #define FORBIDDEN_SYMBOL_ALLOW_ALL if they
* have to access functions like fopen, fread etc.
@@ -203,6 +203,11 @@
#define exit(a) FORBIDDEN_SYMBOL_REPLACEMENT
#endif
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_abort
+#undef abort
+#define abort() FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
#ifndef FORBIDDEN_SYMBOL_EXCEPTION_getenv
#undef getenv
#define getenv(a) FORBIDDEN_SYMBOL_REPLACEMENT