Permalink
Browse files

COMMON: Make strdup a forbidden symbol

  • Loading branch information...
ccawley2011 authored and sev- committed Aug 18, 2018
1 parent 7a437e9 commit 4016cffd7ad0783eed0497e05a98cfc7684813fa
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;

0 comments on commit 4016cff

Please sign in to comment.