1
1

* some versions of malloc.h check to see if __malloc_attribute__ is defined, and

set it to empty if it isn't.  __malloc_attribute__ is set in sys/cdef.h, and
  some versions set it unconditionally.  If sys/cdef.h is included after malloc.h,
  some compilers will complain loudly.  So include malloc.h at the end so that
  sys/cdef.h is already included if it's going to be.

This commit was SVN r7613.
Этот коммит содержится в:
Brian Barrett 2005-10-04 14:42:32 +00:00
родитель 94bab558dd
Коммит 8894eabf00

Просмотреть файл

@ -14,13 +14,12 @@
* $HEADER$
*/
#include <malloc.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#define __USE_GNU
#include <dlfcn.h>
#include <malloc.h>
#include "opal/memory/memory_internal.h"