* 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.
Этот коммит содержится в:
родитель
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"
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user