Branch: Tag:

2012-08-20

2012-08-20 15:10:38 by Martin Stjernholm <mast@lysator.liu.se>

Fixed --enable-dlmalloc on systems with struct mallinfo.

195: Inside #if defined(USE_DL_MALLOC)
  PMOD_EXPORT void* dlmemalign(size_t, size_t);   PMOD_EXPORT void* dlvalloc(size_t);   PMOD_EXPORT void* dlpvalloc(size_t); + PMOD_EXPORT struct mallinfo dlmallinfo(void);   #define malloc dlmalloc   #define free dlfree   #define calloc dlcalloc
202:   #define memalign dlmemalign   #define valloc dlvalloc   #define pvalloc dlpvalloc + /* No define for mallinfo since there's a struct with the same name. */   #ifdef strdup   #undef strdup   #endif