On 06/09/2013 08:34 PM, Gabriel Dos Reis wrote:
I strongly suggest prefering <stdlib.h> over <cstdlib> for GCC source code
base.

The problem is that including <stdlib.h> does not define _GLIBCXX_CSTDLIB, so if one of the C++ library headers includes <cstdlib> the contents are added then, but by that point e.g. "malloc" is poisoned, so the mentions of malloc in cstdlib cause errors.

Because we are poisoning these names, we need to #include *both* headers in system.h.

Jason

Reply via email to