* memory.h: Move include of memtypes.h to after the definition of
struct memory_list, gcc 4.0 doesn't like arrays of incomplete
types.
2005-04-22 Paul Jakma <paul.jakma@sun.com>
+ * memory.h: Move include of memtypes.h to after the definition of
+ struct memory_list, gcc 4.0 doesn't like arrays of incomplete
+ types.
* thread.h: Add background thread type and thread_add_background
macro and accompanying funcname_... function.
export thread_should_yield, background threads can use it.
#ifndef _ZEBRA_MEMORY_H
#define _ZEBRA_MEMORY_H
-#include "memtypes.h"
-
/* For pretty printing of memory allocate information. */
struct memory_list
{
const char *name;
};
+#include "memtypes.h"
+
extern struct mlist mlists[];
/* #define MEMORY_LOG */