Try to prevent direct use of exit(), malloc(), etc

Use `#pragma GCC poison` (supported since GCC 3, maybe earlier) when
compiling with GCC to help prevent direct uses being introduced for
functions which DOH provides a wrapper for.
This commit is contained in:
Olly Betts 2022-03-06 15:36:42 +13:00
commit 747a51f095
4 changed files with 50 additions and 16 deletions

View file

@ -1417,6 +1417,4 @@ static void SWIG_exit_handler(int status) {
}
}
}
exit(status);
}