瀏覽代碼

do not declare malloc etc. if not needed

Ioannis Koutras 13 年之前
父節點
當前提交
3b357ae86d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/dmmlib/dmmlib.h

+ 4 - 0
include/dmmlib/dmmlib.h

@@ -34,6 +34,8 @@
 /** Global variable storing allocator's settings */
 allocator_t systemallocator;
 
+#if !defined _STDLIB_H && !defined _STDLIB_H_
+
 /**
  * Allocates size bytes by using the system's allocator.
  * @param size Requested allocation size in bytes.
@@ -66,4 +68,6 @@ void * realloc(void *ptr, size_t size);
  */
 void * calloc(size_t count, size_t size);
 
+#endif /* ! STDLIB_H */
+
 #endif /* DMMLIB_H */