瀏覽代碼

10l: Add #undefs for system free/malloc/realloc, which must be used here.

Originally committed as revision 16794 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun 17 年之前
父節點
當前提交
1e60e93355
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      libavutil/mem.c

+ 5 - 0
libavutil/mem.c

@@ -35,6 +35,11 @@
 
 #include "mem.h"
 
+/* here we can use OS dependent allocation functions */
+#undef free
+#undef malloc
+#undef realloc
+
 /* you can redefine av_malloc and av_free in your project to use your
    memory allocator. You do not need to suppress this file because the
    linker will do it automatically */