Typo fixed.
[libfirm] / ir / adt / pdeq.c
index 2eb2f6d..24d18ba 100644 (file)
 #include "tune.h"
 #include "cookies.h"
 #include "debug.h"
-#include "malloc.h"
 #include "pdeq.h"
 
+
+#ifndef INLINE
+#ifdef USE_GCC_INLINE
+#define INLINE inline
+#else
+#define INLINE
+#endif
+#endif
+
 /* # of data items in block */
 #define NDATA ((int)((PREF_MALLOC_SIZE - offsetof (pdeq, data)) / sizeof (void *)))
 
@@ -47,7 +55,7 @@ pdeq *pdeq_block_cache[TUNE_NSAVED_PDEQS+1];
 unsigned pdeqs_cached;         /* # pdeqs in pdeq_store */
 
 
-static inline void
+static INLINE void
 free_pdeq_block (pdeq *p)
 {
 #ifndef NDEBUG
@@ -63,7 +71,7 @@ free_pdeq_block (pdeq *p)
 }
 
 
-static inline pdeq *
+static INLINE pdeq *
 alloc_pdeq_block (void)
 {
   pdeq *p;