MCSclimate / MCT

Model Coupling Tookit
Other
43 stars 18 forks source link

Remove unnecessary include of `malloc.h`. #16

Closed quantheory closed 9 years ago

quantheory commented 9 years ago

When mucking around with building MCT through CMake (for CIME unit tests), we found an issue where the SYSDARWIN definition in CPPDEFS wasn't being used when compiling mpi-serial. That may be a separate bug, but looking at the specific code where it is used, there's this include of malloc.h. The right place to get malloc is from stdlib, not malloc.h (which is non-standard), so this needs to just be removed entirely.

quantheory commented 9 years ago

CC @billsacks, in case he's interested as the one who found this.