浏览代码

heap.h should include dmm_config.h in order to get the number of heaps.

Ioannis Koutras 13 年之前
父节点
当前提交
3cd04d4b8e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      include/dmmlib/heap.h

+ 2 - 1
include/dmmlib/heap.h

@@ -25,11 +25,12 @@
 #ifndef HEAP_H
 #ifndef HEAP_H
 #define HEAP_H
 #define HEAP_H
 
 
+#include "dmm_config.h"
+
 #include <stdint.h>
 #include <stdint.h>
 #include <stddef.h> /* For size_t support */
 #include <stddef.h> /* For size_t support */
 #include <stdbool.h>
 #include <stdbool.h>
 
 
-#include "dmm_config.h"
 #ifdef HAVE_LOCKS
 #ifdef HAVE_LOCKS
 #include <pthread.h>
 #include <pthread.h>
 #endif /* HAVE_LOCKS */
 #endif /* HAVE_LOCKS */