aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorCameron Cawley2018-08-18 13:35:03 +0100
committerEugene Sandulenko2018-08-18 16:30:05 +0200
commit4016cffd7ad0783eed0497e05a98cfc7684813fa (patch)
tree6e591facbff42269ca2671a01411b4a6e07382a8 /common
parent7a437e909ce81894d4ad9f1e22b55e609becb9bb (diff)
downloadscummvm-rg350-4016cffd7ad0783eed0497e05a98cfc7684813fa.tar.gz
scummvm-rg350-4016cffd7ad0783eed0497e05a98cfc7684813fa.tar.bz2
scummvm-rg350-4016cffd7ad0783eed0497e05a98cfc7684813fa.zip
COMMON: Make strdup a forbidden symbol
Diffstat (limited to 'common')
-rw-r--r--common/forbidden.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/forbidden.h b/common/forbidden.h
index 8f0220bb04..4ea481d9e3 100644
--- a/common/forbidden.h
+++ b/common/forbidden.h
@@ -459,6 +459,10 @@
#define strncasecmp(a,b,c) FORBIDDEN_SYMBOL_REPLACEMENT
#endif
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_strdup
+#undef strdup
+#define strdup(a) FORBIDDEN_SYMBOL_REPLACEMENT
+#endif
/*
* We also would like to disable the following symbols;