[MOAB-dev] r1886 - in MOAB/trunk: parallel tools/mbcoupler
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Tue Jun 10 09:31:31 CDT 2008
Author: kraftche
Date: 2008-06-10 09:31:31 -0500 (Tue, 10 Jun 2008)
New Revision: 1886
Modified:
MOAB/trunk/parallel/errmem.h
MOAB/trunk/tools/mbcoupler/errmem.h
Log:
Don't include malloc.h. It is not portable. The malloc family of functions are defined in stdlib.h. malloc.h, if available, typically defines related non-standard functions
Modified: MOAB/trunk/parallel/errmem.h
===================================================================
--- MOAB/trunk/parallel/errmem.h 2008-06-09 23:55:41 UTC (rev 1885)
+++ MOAB/trunk/parallel/errmem.h 2008-06-10 14:31:31 UTC (rev 1886)
@@ -10,7 +10,8 @@
Memory Allocation Wrappers to Catch Out-of-memory
--------------------------------------------------------------------------*/
-#include "malloc.h"
+/* #include "malloc.h" */
+#include <stdlib.h>
#ifdef __GNUC__
void fail(const char *fmt, ...) __attribute__ ((noreturn));
Modified: MOAB/trunk/tools/mbcoupler/errmem.h
===================================================================
--- MOAB/trunk/tools/mbcoupler/errmem.h 2008-06-09 23:55:41 UTC (rev 1885)
+++ MOAB/trunk/tools/mbcoupler/errmem.h 2008-06-10 14:31:31 UTC (rev 1886)
@@ -10,7 +10,8 @@
Memory Allocation Wrappers to Catch Out-of-memory
--------------------------------------------------------------------------*/
-#include "malloc.h"
+/* #include "malloc.h" */
+#include <stdlib.h>
#ifdef __GNUC__
void fail(const char *fmt, ...) __attribute__ ((noreturn));
More information about the moab-dev
mailing list