Permalink
Browse files

COMMON: Make strdup a forbidden symbol

  • Loading branch information...
ccawley2011 committed Aug 18, 2018
1 parent 3fea580 commit b2d80359cf7e1140358bc7ff40bcb64e83b99685
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 b2d8035

Please sign in to comment.