Skip to content

Commit

Permalink
COMMON: Make strdup a forbidden symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Aug 18, 2018
1 parent 3fea580 commit b2d8035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/forbidden.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@
#define strncasecmp(a,b,c) FORBIDDEN_SYMBOL_REPLACEMENT #define strncasecmp(a,b,c) FORBIDDEN_SYMBOL_REPLACEMENT
#endif #endif


#ifndef FORBIDDEN_SYMBOL_EXCEPTION_strdup
#undef strdup
#define strdup(a) FORBIDDEN_SYMBOL_REPLACEMENT
#endif


/* /*
* We also would like to disable the following symbols; * We also would like to disable the following symbols;
Expand Down

0 comments on commit b2d8035

Please sign in to comment.