aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2011-05-17 12:58:34 +0200
committerMax Horn2011-05-17 12:58:34 +0200
commit9b2ef340dceebc3db36519051e45af0fd9477850 (patch)
treee62c53f742ee80cc5aed4839d72f2f744aa56eae /common
parenta03ed0a3f7643417bbc169301a4fdd23043f3134 (diff)
downloadscummvm-rg350-9b2ef340dceebc3db36519051e45af0fd9477850.tar.gz
scummvm-rg350-9b2ef340dceebc3db36519051e45af0fd9477850.tar.bz2
scummvm-rg350-9b2ef340dceebc3db36519051e45af0fd9477850.zip
COMMON: Forbid use of some more symbols
Diffstat (limited to 'common')
-rw-r--r--common/forbidden.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/common/forbidden.h b/common/forbidden.h
index 95ecb7c191..d769ff38be 100644
--- a/common/forbidden.h
+++ b/common/forbidden.h
@@ -244,6 +244,43 @@
#define setvbuf(a,b,c,d) FORBIDDEN_SYMBOL_REPLACEMENT
#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_tmpfile
+#undef tmpfile
+#define tmpfile() FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_tmpnam
+#undef tmpnam
+#define tmpnam(a) FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_tempnam
+#undef tempnam
+#define tempnam(a,b) FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_rand
+#undef rand
+#define rand() FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_srand
+#undef srand
+#define srand(a) FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_random
+#undef random
+#define random() FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_srandom
+#undef srandom
+#define srandom(a) FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
+
+
/*
* We also would like to disable the following symbols;
* however, these are also frequently used in regular code,